BaseExecSpec
, ProcessForkOptions
AbstractExecTask
, Exec
, RunTestExecutable
public interface ExecSpec extends BaseExecSpec
Modifier and Type | Method | Description |
---|---|---|
ExecSpec |
args(Iterable<?> args) |
Adds arguments for the command to be executed.
|
ExecSpec |
args(Object... args) |
Adds arguments for the command to be executed.
|
ExecSpec |
commandLine(Iterable<?> args) |
Sets the full command line, including the executable to be executed plus its arguments.
|
ExecSpec |
commandLine(Object... args) |
Sets the full command line, including the executable to be executed plus its arguments.
|
List<String> |
getArgs() |
Returns the arguments for the command to be executed.
|
List<CommandLineArgumentProvider> |
getArgumentProviders() |
Argument providers for the application.
|
ExecSpec |
setArgs(Iterable<?> args) |
Sets the arguments for the command to be executed.
|
ExecSpec |
setArgs(List<String> args) |
Sets the arguments for the command to be executed.
|
void |
setCommandLine(Iterable<?> args) |
Sets the full command line, including the executable to be executed plus its arguments.
|
void |
setCommandLine(Object... args) |
Sets the full command line, including the executable to be executed plus its arguments.
|
void |
setCommandLine(List<String> args) |
Sets the full command line, including the executable to be executed plus its arguments.
|
getCommandLine, getErrorOutput, getStandardInput, getStandardOutput, isIgnoreExitValue, setErrorOutput, setIgnoreExitValue, setStandardInput, setStandardOutput
copyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setExecutable, setWorkingDir, setWorkingDir, workingDir
void setCommandLine(List<String> args)
args
- the command plus the args to be executedvoid setCommandLine(Object... args)
args
- the command plus the args to be executedvoid setCommandLine(Iterable<?> args)
args
- the command plus the args to be executedExecSpec commandLine(Object... args)
args
- the command plus the args to be executedExecSpec commandLine(Iterable<?> args)
args
- the command plus the args to be executedExecSpec args(Object... args)
args
- args for the commandExecSpec args(Iterable<?> args)
args
- args for the commandExecSpec setArgs(List<String> args)
args
- args for the commandExecSpec setArgs(Iterable<?> args)
args
- args for the commandList<String> getArgs()
@Incubating List<CommandLineArgumentProvider> getArgumentProviders()