A abstract task type for executing binaries that take a command as well as a set of command arguments.
org.ysb33r.grolifant.api.v4.exec in 0.17.0)| 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 Params | Return Type | Name and description |
|---|---|---|
|
void |
cmdArgs(Iterable<?> args)Add more command-specific arguments. |
|
void |
cmdArgs(Object... args)Add more command-specific arguments. |
|
void |
command(Object cmd)Set the command to use. |
|
protected T |
configureExecSpec()Configures the executions specification from settings. |
|
java.util.List<String> |
getCmdArgs()Any arguments specific to the command in use |
|
String |
getCommand()The command used in this specification as a String. |
|
protected T |
getToolExecSpec()Execution specification customised for the specific tool |
|
void |
setCmdArgs(Iterable<?> args)Replace the command-specific arguments with a new set. |
|
void |
setCommand(Object cmd)Set the command to use. |
Add more command-specific arguments.
args - Additional list of argumentsAdd more command-specific arguments.
args - Additional list of argumentsSet the command to use.
cmd - Anything that can be resolved via StringUtils.stringizeConfigures the executions specification from settings.
Any arguments specific to the command in use
Execution specification customised for the specific tool
Replace the command-specific arguments with a new set.
args - New list of command-specific argumentsSet the command to use.
cmd - Anything that can be resolved via StringUtils.stringize