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 |
Constructor and description |
---|
protected AbstractScriptExecSpec
(Project project) 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 executable 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 executable 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.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 getToolInstructionArgs will be ignored.
Set the executable to use.
exe
- Anything that can be resolved via org.ysb33r.gradle.olifant.StringUtils.stringize(Object)Add more script-specific arguments.
args
- Additional list of argumentsAdd more script-specific arguments.
args
- Additional list of argumentsSet the executable to use.
cmd
- Anything that can be resolved via StringUtils.stringize(Object)Replace the script-specific arguments with a new set.
args
- New list of tool-specific arguments