Tool execution specification aimed at script-line tools which takes a script as one of the arguments.
| Fields inherited from class | Fields |
|---|---|
class AbstractExecSpec |
env, project, workingDir |
| Type | Name and description |
|---|---|
String |
script |
Iterable<?> |
scriptArgs |
| Constructor and description |
|---|
protected AbstractScriptExecSpec
(Project project, ExternalExecutable registry)Construct class and attach it to specific project. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
String |
getScript()The script used in this specification as a String. |
|
java.util.List<String> |
getScriptArgs()Any arguments specific to the script. |
|
protected String |
getToolInstruction()A specific instruction passed to a tool. |
|
void |
script(Object cmd)Set the exe 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 exe to use. |
|
void |
setScriptArgs(Iterable<?> args)Replace the script-specific arguments with a new set. |
Construct class and attach it to specific project.
project - Project this exec spec is attached.registry - Registry used to resolve executables.The script used in this specification as a String.
Any arguments specific to the script.
A specific instruction passed to a tool. Instruction can be empty or null, which means that by default implementation getToolInstruction will be ignored.
Set the exe to use.
exe - 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 exe to use.
cmd - Anything that can be resolved via StringUtils.stringizeReplace the script-specific arguments with a new set.
args - New list of tool-specific argumentsGroovy Documentation