@groovy.transform.CompileStatic @Deprecated abstract class AbstractScriptExecSpec extends AbstractToolExecSpec
Tool execution specification aimed at script-line tools which takes a script as one of the arguments.
Fields inherited from class | Fields |
---|---|
class AbstractExecSpec |
appRunnerSpec, projectOperations |
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. |
protected AbstractScriptExecSpec
(ProjectOperations projectOperations, 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. |
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 |
addCommandLineProcessor, copyTo, entrypoint, entrypoint, getCommandLineProcessors, process, process, runnerSpec, runnerSpec |
Construct class and attach it to specific project. @deprecated
project
- Project this exec spec is attached.registry
- Registry used to resolve executables.Construct class and attach it to specific project.
projectOperations
- 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#stringize(Object)#stringize(Object)Add 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#stringize(Object)#stringize(Object)Replace the script-specific arguments with a new set.
args
- New list of tool-specific argumentsGroovy Documentation