| Interface | Description |
|---|---|
| ExecAction | |
| ExecHandle | |
| ExecHandleListener | |
| JavaExecAction | |
| WorkerProcess |
A Java process which performs some worker action.
|
| WorkerProcessContext |
| Class | Description |
|---|---|
| AbstractExecHandleBuilder | |
| DefaultExecAction | |
| DefaultExecHandle |
Default implementation for the ExecHandle interface.
|
| DefaultJavaExecAction | |
| DefaultJavaForkOptions | |
| DefaultProcessForkOptions | |
| DefaultWorkerProcess | |
| DefaultWorkerProcessFactory | |
| ExecHandleBuilder | |
| ExecHandleRunner | |
| ExecHandleShutdownHookAction |
Terminates the external running 'sub' process when the Gradle process is being cancelled.
|
| ExecOutputHandleRunner | |
| JavaExecHandleBuilder | |
| JvmOptions | |
| ProcessBuilderFactory |
Creates a
ProcessBuilder based on a ExecHandle. |
| ProcessParentingInitializer |
Initializes for a well behaved parent process.
|
| WorkerProcessBuilder |
A builder which configures and creates a
WorkerProcess instance. |
| Enum | Description |
|---|---|
| ExecHandleState |
| Exception | Description |
|---|---|
| BadExitCodeException | |
| ExecException |
The org.gradle.util.exec.ExecHandle is the class that maps to the external process and provides control
methods to start/abort or wait for the external process to terminate (normally or by a failure).
Creating an instance of org.gradle.util.exec.ExecHandle is done using the org.gradle.util.exec.ExecHandleBuilder
that provides a bunch of usefull functions to set the arguments/... .
It is also possible to add listeners org.gradle.util.exec.ExecHandleListener to the org.gradle.util.exec.ExecHandle that are called
when the org.gradle.util.exec.ExecHandle changes from state org.gradle.util.exec.ExecHandleState.
In order to prevent the external process from blocking (because the output buffers are full)
the standard output and error output are fetch continuously by two Threads until the process terminates.
These Threads pass the output to an org.gradle.util.exec.ExecOutputHandle. The default behaviour is to pass all the output
to the standard output and error output of the parent process. By passing in other org.gradle.util.exec.ExecOutputHandle this
behaviour can be customized.
Copyright © 2013. All rights reserved