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

GeneratePluginList

open class GeneratePluginList : DefaultTask

Constructors

<init>

GeneratePluginList()

Properties

iconBase64Provider

var iconBase64Provider: (String) -> String?

Optional parameter, converts a relative icon path (you decide relative to what, this class does not make assumptions about that) to a Base64 representation. This parameter is optional, by default or if it returns null, the icon path is added as-is to the list.

outputFile

lateinit var outputFile: File

The file to which this task writes the plugin list, will be overwritten if it exists. This parameter is required.

versionSuffix

var versionSuffix: (String) -> String?

A function that gives you a suffix that's appended to the plugin version. It takes the plugin name as an argument.

Functions

action

fun action(): Unit

addPlugin

fun addPlugin(name: String, atts: Map<String, String>, downloadUrl: URL): Unit

Add a plugin that should appear in the list