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, 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 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. |
Methods inherited from class | Name |
---|---|
class AbstractToolExecSpec |
buildCommandLine, configure, configure, copyTo, copyToExecSpec, exeArgs, exeArgs, executable, executable, executable, getCommandLine, getExeArgs, getExecutable, getExecutableResolver, getInstructionsArgs, getResolvableExecutable, getToolInstruction, instructionArgs, instructionArgs, setExeArgs, setExecutable, setExecutable, setExecutable, setExecutable, setInstructionArgs |
class AbstractExecSpec |
environment, environment, errorOutput, getEnvironment, getErrorOutput, getStandardInput, getStandardOutput, getWorkingDir, ignoreExitValue, isIgnoreExitValue, setEnvironment, setErrorOutput, setIgnoreExitValue, setStandardInput, setStandardOutput, setWorkingDir, setWorkingDir, standardInput, standardOutput, workingDir |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
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 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