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 Summary
Modifier 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.Returns the full command line, including the executable plus its arguments.Methods inherited from interface org.gradle.process.BaseExecSpec
getErrorOutput, getIgnoreExitValue, getIsIgnoreExitValue, getStandardInput, getStandardOutputMethods inherited from interface org.gradle.process.ProcessForkOptions
copyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, workingDir
-
Method Details
-
getCommandLine
Returns the full command line, including the executable plus its arguments.- Specified by:
getCommandLinein interfaceBaseExecSpec- Returns:
- The full command line, including the executable plus its arguments
-
commandLine
Sets 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
-
commandLine
Sets 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
-
args
Adds arguments for the command to be executed.- Parameters:
args- args for the command- Returns:
- this
-
args
Adds arguments for the command to be executed.- Parameters:
args- args for the command- Returns:
- this
-
getArgs
ListProperty<String> getArgs()Returns the arguments for the command to be executed. Defaults to an empty list. -
getArgumentProviders
ListProperty<CommandLineArgumentProvider> getArgumentProviders()Argument providers for the application.- Since:
- 4.6
-