A abstract task type for executing binaries that take a command as well as a set of command arguments.
| Fields inherited from class | Fields |
|---|---|
class DefaultTask |
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION, TASK_CONSTRUCTOR_ARGS |
| Type | Name and description |
|---|---|
String |
script |
Iterable<?> |
scriptArgs |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected T |
configureExecSpec()Configures the executions specification from settings. |
|
String |
getScript()The script used in this specification as a String. |
|
java.util.List<String> |
getScriptArgs()Any arguments specific to the script in use |
|
void |
script(Object cmd)Set the script to use. |
|
void |
scriptArgs(Iterable<?> args)Add more script-specific arguments. |
|
void |
scriptArgs(Object... args)Add more script-specific arguments. |
|
void |
setScript(Object cmd)Set the script to use. |
|
void |
setScriptArgs(Iterable<?> args)Replace the script-specific arguments with a new set. |
Configures the executions specification from settings.
Any arguments specific to the script in use
Set the script to use.
cmd - Anything that can be resolved via StringUtils.stringizeAdd more script-specific arguments.
args - Additional list of argumentsAdd more script-specific arguments.
args - Additional list of argumentsSet the script to use.
cmd - Anything that can be resolved via StringUtils.stringizeReplace the script-specific arguments with a new set.
args - New list of script-specific arguments