Used to execute a BuildAction in the build process.
- The type of result produced by this executer.Type | Name and description |
---|---|
BuildActionExecuter<T> |
addProgressListener(ProgressListener listener) {@inheritDoc} |
BuildActionExecuter<T> |
addProgressListener(ProgressListener listener) {@inheritDoc} |
BuildActionExecuter<T> |
addProgressListener(ProgressListener listener, Set<OperationType> eventTypes) {@inheritDoc} |
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. |
BuildActionExecuter<T> |
setColorOutput(boolean colorOutput) {@inheritDoc} |
BuildActionExecuter<T> |
setJavaHome(File javaHome) {@inheritDoc} |
BuildActionExecuter<T> |
setJvmArguments(String... jvmArguments) {@inheritDoc} |
BuildActionExecuter<T> |
setStandardError(OutputStream outputStream) {@inheritDoc} |
BuildActionExecuter<T> |
setStandardInput(InputStream inputStream) {@inheritDoc} |
BuildActionExecuter<T> |
setStandardOutput(OutputStream outputStream) {@inheritDoc} |
BuildActionExecuter<T> |
withArguments(String... arguments) {@inheritDoc} |
BuildActionExecuter<T> |
withCancellationToken(CancellationToken cancellationToken) {@inheritDoc} |
Methods inherited from class | Name |
---|---|
interface LongRunningOperation |
addProgressListener, addProgressListener, addProgressListener, setColorOutput, setJavaHome, setJvmArguments, setStandardError, setStandardInput, setStandardOutput, withArguments, withCancellationToken |
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
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.{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}