Table of Contents
| API Documentation: | AbstractExecTask |
|---|
| Known Subtypes: |
|
|---|
AbstractExecTask is the base class for all exec tasks.
| Property | Description |
args | The arguments for the command to be executed. Defaults to an empty list. |
argumentProviders | Argument providers for the application. |
commandLine | The full command line, including the executable plus its arguments. |
environment | The environment variables to use for the process. Defaults to the environment of this process. |
errorOutput | The output stream to consume standard error from the process executing the command. Default to |
executable | The name of the executable to use. |
executionResult | The result for the command run by this task. The provider has no value if this task has not been executed yet. |
ignoreExitValue | Tells whether a non-zero exit value is ignored, or an exception thrown. Defaults to |
standardInput | The standard input stream for the process executing the command. The stream is closed after the process completes. Defaults to an empty stream. |
standardOutput | The output stream to consume standard output from the process executing the command. Defaults to |
workingDir | Replaced The working directory for the process. Defaults to the project directory. |
| Method | Description |
args(args) | Adds arguments for the command to be executed. |
args(args) | Adds arguments for the command to be executed. |
commandLine(args) | Sets the full command line, including the executable to be executed plus its arguments. |
commandLine(arguments) | Sets the full command line, including the executable to be executed plus its arguments. |
environment(name, value) | Adds an environment variable to the environment for this process. |
environment(environmentVariables) | Adds some environment variables to the environment for this process. |
executable(executable) | Sets the name of the executable to use. |
workingDir(dir) | Sets the working directory for the process. The supplied argument is evaluated as per |
ListProperty<String> args
ListProperty<String>The arguments for the command to be executed. Defaults to an empty list.
ListProperty<CommandLineArgumentProvider> argumentProviders
ListProperty<CommandLineArgumentProvider>Argument providers for the application.
The full command line, including the executable plus its arguments.
MapProperty<String, Object> environment
MapProperty<String, Object>The environment variables to use for the process. Defaults to the environment of this process.
Property<OutputStream> errorOutput
Property<OutputStream>The output stream to consume standard error from the process executing the command. Default to System.err.
Provider<ExecResult> executionResult
Provider<ExecResult>The result for the command run by this task. The provider has no value if this task has not been executed yet.
Tells whether a non-zero exit value is ignored, or an exception thrown. Defaults to false.
Property<InputStream> standardInput
Property<InputStream>The standard input stream for the process executing the command. The stream is closed after the process completes. Defaults to an empty stream.
Property<OutputStream> standardOutput
Property<OutputStream>The output stream to consume standard output from the process executing the command. Defaults to System.out.
File workingDir
Note: This property has been replaced by workingDirectory.
The working directory for the process. Defaults to the project directory.
T args(Iterable<?> args)
Iterable<?>Adds arguments for the command to be executed.
T args(Object... args)
Object...Adds arguments for the command to be executed.
T commandLine(Iterable<?> args)
Iterable<?>Sets the full command line, including the executable to be executed plus its arguments.
T commandLine(Object... arguments)
Object...Sets the full command line, including the executable to be executed plus its arguments.
Adds an environment variable to the environment for this process.
Adds some environment variables to the environment for this process.
T executable(Object executable)
Sets the name of the executable to use.
T workingDir(Object dir)
Sets the working directory for the process. The supplied argument is evaluated as per Project.file(java.lang.Object).