Methods for setting executables and arguments.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
exeArgs(Iterable<?> args) Add more tool-specific arguments. |
|
void |
exeArgs(Object... args) Add more tool-specific arguments. |
|
void |
executable(java.util.Map<String, Object> exe) Use a key-value approach to setting the exe. |
|
ProcessForkOptions |
executable(ResolvableExecutable resolver) Set the exe to use. |
|
java.util.List<String> |
getExeArgs() Any arguments specific to the tool in use |
|
ResolvableExecutable |
getResolvableExecutable() Lazy-evaluated version of the exe |
|
void |
setExeArgs(Iterable<?> args) Replace the tool-specific arguments with a new set. |
|
void |
setExecutable(String exe) Set the exe to use. |
|
void |
setExecutable(java.util.Map<String, Object> exe) Use a key-value approach to setting the exe. |
|
void |
setExecutable(ResolvableExecutable resolver) Set the exe to use. |
Methods inherited from class | Name |
---|---|
interface MutableBaseExecSpec |
errorOutput, ignoreExitValue, setWorkingDir, standardInput, standardOutput |
interface BaseExecSpec |
setStandardOutput, setErrorOutput, setIgnoreExitValue, isIgnoreExitValue, getStandardInput, setStandardInput, getStandardOutput, getErrorOutput, getCommandLine, setWorkingDir, setWorkingDir, workingDir, setEnvironment, getEnvironment, getWorkingDir, getExecutable, copyTo, executable, setExecutable, setExecutable, environment, environment |
Add more tool-specific arguments.
args
- Additional list of argumentsAdd more tool-specific arguments.
args
- Additional list of arguments Use a key-value approach to setting the exe.
In the default implementation only path
and search
are supported as a declarative keys.
Implementations should use ResolverFactoryRegistry to add more keys.
exe
- Key-value setting exe (with optional extra keys)Set the exe to use.
resolver
- An implementation of ResolvableExecutableAny arguments specific to the tool in use
Lazy-evaluated version of the exe
null
if not configured.Replace the tool-specific arguments with a new set.
args
- New list of tool-specific argumentsSet the exe to use.
This variant of the method has been introduced to cope with the API change in Gradle 4.0.
exe
- Executable as String representation Use a key-value approach to setting the exe.
In the default implementation only path
and search
are supported as a declarative keys.
Implementations should use ResolverFactoryRegistry to add more keys.
exe
- Key-value setting exe (with optional extra keys)Set the exe to use.
resolver
- An implementation of ResolvableExecutable