Search in sources :

Example 1 with ExecHandleListener

use of org.gradle.process.internal.ExecHandleListener in project gradle by gradle.

the class DefaultWorkerProcess method setExecHandle.

public void setExecHandle(ExecHandle execHandle) {
    this.execHandle = execHandle;
    execHandle.addListener(new ExecHandleListener() {

        public void executionStarted(ExecHandle execHandle) {
        }

        public void executionFinished(ExecHandle execHandle, ExecResult execResult) {
            onProcessStop(execResult);
        }
    });
}
Also used : ExecHandleListener(org.gradle.process.internal.ExecHandleListener) ExecHandle(org.gradle.process.internal.ExecHandle) ExecResult(org.gradle.process.ExecResult)

Aggregations

ExecResult (org.gradle.process.ExecResult)1 ExecHandle (org.gradle.process.internal.ExecHandle)1 ExecHandleListener (org.gradle.process.internal.ExecHandleListener)1