Tool execution specification aimed at command-line tools which takes a command as one of the arguments.
| Fields inherited from class | Fields |
|---|---|
class AbstractExecSpec |
env, project, workingDir |
| Constructor and description |
|---|
protected AbstractCommandExecSpec
(Project project, ExternalExecutable registry)Construct class and attach it to specific project. |
| 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. |
|
java.util.List<String> |
getCmdArgs()Any arguments specific to the command. |
|
String |
getCommand()The script used in this specification as a String. |
|
protected String |
getToolInstruction()A specific instruction passed to a tool. |
|
void |
setCmdArgs(Iterable<?> args)Replace the command-specific arguments with a new set. |
|
void |
setCommand(Object cmd)Set the command to use. |
Construct class and attach it to specific project.
project - Project this exec spec is attached.registry - Registry used to resolve executables.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 org.ysb33r.grolifant.api.v4.StringUtils#stringize(java.lang.Object)Any arguments specific to the command.
The script used in this specification as a String.
A specific instruction passed to a tool. Instruction can be empty or null, which means that by default implementation getToolInstruction will be ignored.
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 org.ysb33r.grolifant.api.v4.StringUtils#stringize(java.lang.Object)Groovy Documentation