Skip to content

Custom variables (properties)

Attila Kelemen edited this page Oct 4, 2016 · 1 revision

You can set values for task variables which can be then used in built-in task definitions and custom tasks. The general reason to do so is if you have more custom tasks for which you have to set the same value, this is a convenient place to set that value (only once). Variables defined here must be referenced as "${my-variable-name}" in custom task definitions.

At the moment, there is only one variable which is special in some sense: cmd-line-args. The default configuration of run and debug built-in tasks rely on this property and if you set it, you can configure the command line arguments (passed to the main method). Note, that normally not having a variable defined would pop up a dialog when executing a task referencing the variable. However, this is not the case for cmd-line-args because it has a default value (which is an empty string).

Clone this wiki locally