interface BuildActionExecuter<T : Any> : ConfigurableLauncher<BuildActionExecuter<T>>
Used to execute a BuildAction in the build process.
- The type of result produced by this executer.
Since
1.8
interface Builder
Builder for a a build action that hooks into different phases of the build. A single BuildAction is allowed per build phase. Use composite actions if needed. |
abstract fun forTasks(vararg tasks: String): BuildActionExecuter<T> abstract fun forTasks(tasks: MutableIterable<String>): BuildActionExecuter<T>
Specifies the tasks to execute before executing the BuildAction. If not configured, null, or an empty array is passed, then no tasks will be executed. |
|
abstract fun run(): T
Runs the action, blocking until its result is available. abstract fun run(handler: ResultHandler<in T>): Unit
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 If the operation fails, the handler's |
abstract fun addProgressListener(listener: ProgressListener): T abstract fun addProgressListener(listener: ProgressListener): T abstract fun addProgressListener(listener: ProgressListener, eventTypes: MutableSet<OperationType>): T abstract fun addProgressListener(listener: ProgressListener, vararg operationTypes: OperationType): T
{@inheritDoc} |
|
abstract fun setColorOutput(colorOutput: Boolean): T
{@inheritDoc} |
|
abstract fun setEnvironmentVariables(envVariables: MutableMap<String, String>): T
{@inheritDoc} |
|
abstract fun setJavaHome(javaHome: File): T
{@inheritDoc} |
|
abstract fun setJvmArguments(vararg jvmArguments: String): T abstract fun setJvmArguments(jvmArguments: MutableIterable<String>): T
{@inheritDoc} |
|
abstract fun setStandardError(outputStream: OutputStream): T
{@inheritDoc} |
|
abstract fun setStandardInput(inputStream: InputStream): T
{@inheritDoc} |
|
abstract fun setStandardOutput(outputStream: OutputStream): T
{@inheritDoc} |
|
abstract fun withArguments(vararg arguments: String): T abstract fun withArguments(arguments: MutableIterable<String>): T
{@inheritDoc} |
|
abstract fun withCancellationToken(cancellationToken: CancellationToken): T
{@inheritDoc} |