@groovy.transform.CompileStatic @SuppressWarnings('AbstractClassWithoutAbstractMethod') abstract class AbstractExecSpec
Abstract base class that implements BaseExecSpec.
Modifiers | Name | Description |
---|---|---|
protected java.util.Map<String, Object> |
env |
|
protected Object |
workingDir |
Type | Name and description |
---|---|
java.util.Map<String, Object> |
environment |
OutputStream |
errorOutput |
boolean |
ignoreExitValue |
InputStream |
standardInput |
OutputStream |
standardOutput |
File |
workingDir |
File |
workingDir |
Constructor and description |
---|
protected AbstractExecSpec
(Project project) |
protected AbstractExecSpec
(ProjectOperations project) |
Type Params | Return Type | Name and description |
---|---|---|
|
ProcessForkOptions |
environment(java.util.Map<String, ?> map) Add additional environment variables for use with the process. |
|
ProcessForkOptions |
environment(String envVar, Object value) Add additional environment variable for use with the process. |
|
BaseExecSpec |
errorOutput(OutputStream outputStream) Set the stream where error output should be sent to for this process when executing. |
|
java.util.Map<String, Object> |
getEnvironment() Returns the environment to be used for the process. |
|
OutputStream |
getErrorOutput() Where error output is sent to during execution. |
|
protected Project |
getProject() @return Project if items was created in legacy mode, otherwise null . |
|
protected ProjectOperations |
getProjectOperations() @return ProjectOperations |
|
InputStream |
getStandardInput() Where input is read from during execution. |
|
OutputStream |
getStandardOutput() Where standard output is sent to during execution. |
|
File |
getWorkingDir() Obtain the working directory for this process. |
|
BaseExecSpec |
ignoreExitValue(boolean flag) Determine whether the exit value should be ignored. |
|
boolean |
isIgnoreExitValue() State of exit value monitoring. |
|
void |
setEnvironment(java.util.Map<String, ?> map) Set the environment variables to use for the process. |
|
BaseExecSpec |
setErrorOutput(OutputStream outputStream) Set the stream where error output should be sent to for this process when executing. |
|
BaseExecSpec |
setIgnoreExitValue(boolean flag) |
|
BaseExecSpec |
setStandardInput(InputStream inputStream) Set the stream where standard input should be read from for this process when executing. |
|
BaseExecSpec |
setStandardOutput(OutputStream outputStream) Set the stream where standard output should be sent to for this process when executing. |
|
void |
setWorkingDir(Object workDir) Set the working directory for the execution. |
|
void |
setWorkingDir(File workDir) Set the working directory for the execution. |
|
BaseExecSpec |
standardInput(InputStream inputStream) Set the stream where standard input should be read from for this process when executing. |
|
BaseExecSpec |
standardOutput(OutputStream outputStream) Set the stream where standard output should be sent to for this process when executing. |
|
ProcessForkOptions |
workingDir(Object workDir) Set the working directory for the execution. |
Add additional environment variables for use with the process.
map
- Environmental variables as key-value pairs.Add additional environment variable for use with the process.
envVar
- Name of environmental variable.value
- Value of environmental variable.Set the stream where error output should be sent to for this process when executing.
outputStream
- Output stream to use.Returns the environment to be used for the process.
Where error output is sent to during execution.
null
.
Where input is read from during execution.
Where standard output is sent to during execution.
Obtain the working directory for this process. This call will evaluate the lazily-set working directory for setWorkingDir0
java.io.File
object.Determine whether the exit value should be ignored.
flag
- Whether exit value should be ignored.State of exit value monitoring.
Set the environment variables to use for the process.
map
- Environmental variables as key-value pairs.Set the stream where error output should be sent to for this process when executing.
outputStream
- Output stream to use.Set the stream where standard input should be read from for this process when executing.
inputStream
- Inout stream to use.Set the stream where standard output should be sent to for this process when executing.
outputStream
- Output stream to use.Set the working directory for the execution.
workDir
- Any object that is convertible using Gradle's project.file
.Set the working directory for the execution.
This version has been introduced to deal with the API change in Gradle 4.0.
workDir
- Working directory as a java.io.File
instance.Set the stream where standard input should be read from for this process when executing.
inputStream
- Inout stream to use.Set the stream where standard output should be sent to for this process when executing.
outputStream
- Output stream to use.Set the working directory for the execution.
workDir
- Any object that is convertible using Gradle's project.file
.Groovy Documentation