Package org.gradle.process
Interface ExecSpec
- All Superinterfaces:
- BaseExecSpec,- ProcessForkOptions
- All Known Implementing Classes:
- AbstractExecTask,- Exec,- RunTestExecutable
Specified the options for executing some command.
- 
Method SummaryModifier and TypeMethodDescriptionAdds arguments for the command to be executed.Adds arguments for the command to be executed.commandLine(Iterable<?> args) Sets the full command line, including the executable to be executed plus its arguments.commandLine(Object... args) Sets the full command line, including the executable to be executed plus its arguments.getArgs()Returns the arguments for the command to be executed.Argument providers for the application.Sets the arguments for the command to be executed.Sets the arguments for the command to be executed.voidsetCommandLine(Iterable<?> args) Sets the full command line, including the executable to be executed plus its arguments.voidsetCommandLine(Object... args) Sets the full command line, including the executable to be executed plus its arguments.voidsetCommandLine(List<String> args) Sets the full command line, including the executable to be executed plus its arguments.Methods inherited from interface org.gradle.process.BaseExecSpecgetCommandLine, getErrorOutput, getStandardInput, getStandardOutput, isIgnoreExitValue, setErrorOutput, setIgnoreExitValue, setStandardInput, setStandardOutputMethods inherited from interface org.gradle.process.ProcessForkOptionscopyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setExecutable, setWorkingDir, setWorkingDir, workingDir
- 
Method Details- 
setCommandLineSets the full command line, including the executable to be executed plus its arguments.- Parameters:
- args- the command plus the args to be executed
- Since:
- 4.0
 
- 
setCommandLineSets the full command line, including the executable to be executed plus its arguments.- Parameters:
- args- the command plus the args to be executed
 
- 
setCommandLineSets the full command line, including the executable to be executed plus its arguments.- Parameters:
- args- the command plus the args to be executed
 
- 
commandLineSets the full command line, including the executable to be executed plus its arguments.- Parameters:
- args- the command plus the args to be executed
- Returns:
- this
 
- 
commandLineSets the full command line, including the executable to be executed plus its arguments.- Parameters:
- args- the command plus the args to be executed
- Returns:
- this
 
- 
argsAdds arguments for the command to be executed.- Parameters:
- args- args for the command
- Returns:
- this
 
- 
argsAdds arguments for the command to be executed.- Parameters:
- args- args for the command
- Returns:
- this
 
- 
setArgsSets the arguments for the command to be executed.- Parameters:
- args- args for the command
- Returns:
- this
- Since:
- 4.0
 
- 
setArgsSets the arguments for the command to be executed.- Parameters:
- args- args for the command
- Returns:
- this
 
- 
getArgsReturns the arguments for the command to be executed. Defaults to an empty list.
- 
getArgumentProvidersList<CommandLineArgumentProvider> getArgumentProviders()Argument providers for the application.- Since:
- 4.6
 
 
-