gradle-josm-plugin / org.openstreetmap.josm.gradle.plugin.task / LangCompile

LangCompile

open class LangCompile : Sync

This is not really a compilation task, it's only named like that analogous to MoCompile and PoCompile.

It copies (more precisely it Syncs) the *.lang files to $buildDir/i18n/lang/$sourceSetName/data

Constructors

<init>

LangCompile(moCompile: MoCompile, sourceSet: I18nSourceSet)

This is not really a compilation task, it's only named like that analogous to MoCompile and PoCompile.

Properties

moCompile

val moCompile: MoCompile

The task for compiling *.mo files to *.lang files. These outputs are then used as inputs for this task.

sourceSet

val sourceSet: I18nSourceSet

The source set from which all *.lang files are synced to the destination

subdirectory

val subdirectory: String

The subdirectory of the LangCompile.getDestinationDir to which the files will be written

Functions

action

fun action(): Unit

The main task action, copies the *.lang files to the target directory.