pl.droidsonroids.gradle.localization.LocalizationTask.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-gradle-localization-plugin Show documentation
Show all versions of android-gradle-localization-plugin Show documentation
Gradle plugin for generating localized string resources
package pl.droidsonroids.gradle.localization
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
class LocalizationTask extends DefaultTask {
{
group = 'localization'
description = """Generates Android string resource XML files
See https://github.com/koral--/android-gradle-localization-plugin#configuration for more information."""
}
@TaskAction
def parseFile() {
def outputDirectory = project.localization.outputDirectory ?: project.file('src/main/res')
new ParserEngine(project.localization, outputDirectory).parseSpreadsheet()
}
}