Used to execute a BuildAction in the build process.
- The type of result produced by this executer.Type | Name and description |
---|---|
T |
run() Runs the action, blocking until its result is available. |
void |
run(ResultHandler<? super T> handler) Starts executing the action, passing the result to the given handler when complete. |
Methods inherited from class | Name |
---|---|
interface LongRunningOperation |
addProgressListener, setJavaHome, setJvmArguments, setStandardError, setStandardInput, setStandardOutput, withArguments, withCancellationToken |
Runs the action, blocking until its result is available.
Starts executing the action, passing the result to the given handler when complete. This method returns immediately, and the result is later passed to the given handler's ResultHandler.onComplete method.
If the operation fails, the handler's ResultHandler.onFailure method is called with the appropriate exception. See run() for a description of the various exceptions that the operation may fail with.
handler
- The handler to supply the result to.