Package org.gradle.process.internal

Classes for running external processes.

See: Description

Package org.gradle.process.internal Description

Classes for running external processes.

ExecHandle

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

ExecHandleBuilder

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/... .

ExecHandleListener

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.

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 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