de.comahe.i18n4k.gradle.plugin.ClearI18n4kFilesTask.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of i18n4k-gradle-plugin Show documentation
Show all versions of i18n4k-gradle-plugin Show documentation
i18n4k is a multiplatform (JVM, JS, native) library and code generator for Kotlin to handle internationalisation (i18n) in your program.
package de.comahe.i18n4k.gradle.plugin
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
@Suppress("unused")
open class ClearI18n4kFilesTask : DefaultTask() {
lateinit var config: I18n4kExtension
@TaskAction
fun doIt() {
I18n4kPlugin.getGeneratedSourcesDirectory(project, config).deleteRecursively()
I18n4kPlugin.getGeneratedLanguageFilesDirectory(project, config).deleteRecursively()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy