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

Package org.openstreetmap.josm.gradle.plugin.task

Reusable Gradle tasks.

Types

CleanJosm

open class CleanJosm : DefaultTask

Virtual task that coordinates deletion of the temporary JOSM preferences.

CustomJosmVersionCompile

open class CustomJosmVersionCompile : JavaCompile

This task compiles the given source set against a specific JOSM version.

DebugJosm

open class DebugJosm : RunJosmTask

The same as RunJosmTask, but the JOSM instance is debuggable via JDWP (Java debug wire protocol) on the port configured at JosmPluginExtension.debugPort.

GenerateFileList

open class GenerateFileList : DefaultTask

Outputs a file containing the absolute paths of all Java source files

GeneratePluginList

open class GeneratePluginList : DefaultTask

GeneratePot

open class GeneratePot : Exec

Create *.pot file (gettext file format), which contains all translatable strings. This file can then be handed to the translators to translate into other languages.

InitJosmPrefs

open class InitJosmPrefs : DefaultTask

A simple copy task that copies a preferences.xml file from JosmPluginExtension.josmConfigDir to JosmPluginExtension.tmpJosmPrefDir if there is not already one in the destination.

LangCompile

open class LangCompile : Sync

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

ListJosmVersions

open class ListJosmVersions : DefaultTask

Task for showing the current latest and tested JOSM versions

MarkdownToHtml

open class MarkdownToHtml : SourceTask

Convert all *.md files found among the source files of this task to *.html files.

MoCompile

open class MoCompile : DefaultTask

This task "compiles" several *.mo files to *.lang files. For the language specified in I18nConfig.mainLanguage, only the "msgid" is used (the text which will be translated). For the other languages, the "msgstr" is used (the text which is already translated to this language).

PoCompile

open class PoCompile : DefaultTask

Compile *.po files (textual gettext files) to *.mo files (binary gettext files).

RunJosmTask

open class RunJosmTask : JavaExec

A task that can execute a JOSM instance. There's also the class DebugJosm, which extends this class and allows to remote debug via JDWP (Java debug wire protocol).

ShortenPoFiles

open class ShortenPoFiles : DefaultTask

Shortens the *.po files in the given source set.

TransifexDownload

open class TransifexDownload : Exec

Task for downloading the current state of the translations from transifex.com

WriteRequiredPluginConfig

open class WriteRequiredPluginConfig : DefaultTask

Extensions for External Classes

org.gradle.api.Project