Overview | Package | Class | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package org.gradle.util.exec

Classes for running external processes.

See:
Description

Interface Summary
ExecHandle |
ExecHandleListener |
ExecHandleNotifierFactory |
ExecOutputHandle |

Class Summary
DefaultExecHandle | Default implementation for the ExecHandle interface.
DefaultExecHandleNotifierFactory |
ExecHandleAbortedNotifier |
ExecHandleBuilder |
ExecHandleFailedNotifier |
ExecHandleNotifier |
ExecHandleRunner |
ExecHandleStartedNotifier |
ExecHandleSucceededNotifier |
ExecOutputHandleRunner |
ProcessBuilderFactory | Creates a `ProcessBuilder` based on a `ExecHandle`.
StreamWriterExecOutputHandle |

Enum Summary
ExecHandleState |

## Package org.gradle.util.exec Description

Classes for running external processes.

### ExecHandle

The `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).

### ExecHandleBuilder

Creating an instance of `ExecHandle` is done using the `ExecHandleBuilder` that provides a bunch of usefull functions to set the arguments/... .

### ExecHandleListener

It is also possible to add listeners `ExecHandleListener` to the `ExecHandle` that are called when the `ExecHandle` changes from state `ExecHandleState`.

### ExecOutputHandle

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 `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 `ExecOutputHandle` this behaviour can be customized.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES