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 AbstractExecTask |
projectOperations |
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. |
Methods inherited from class | Name |
---|---|
class AbstractExecTask |
configureExecSpec, createAndSetExecSpec, createExecSpec, environment, environment, errorOutput, exeArgs, exeArgs, exec, getCommandLine, getEnvironment, getErrorOutput, getExeArgs, getExecResult, getExecSpec, getExecutable, getStandardInput, getStandardOutput, getWorkingDir, ignoreExitValue, isIgnoreExitValue, setEnvironment, setErrorOutput, setExeArgs, setIgnoreExitValue, setStandardInput, setStandardOutput, setToolExecutable, setWorkingDir, standardInput, standardOutput, workingDir |
Configures the executions specification from settings.
The script used in this specification as a String.
Any arguments specific to the script in use
Set the script to use.
cmd
- Anything that can be resolved via org.ysb33r.grolifant.api.StringUtils#stringize(Object)Add 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 org.ysb33r.grolifant.api.StringUtils#stringize(Object)Replace the script-specific arguments with a new set.
args
- New list of script-specific arguments