# BuildActionExecuter

interface BuildActionExecuter<T> : ConfigurableLauncher<T> (source)

Used to execute a BuildAction in the build process.

#### Since

1.8

#### Parameters

<T>

The type of result produced by this executer.

## Types

Builder
Link copied to clipboard
interface Builder
Builder for a build action that hooks into different phases of the build.

## Functions

addArguments
Link copied to clipboard
abstract fun addArguments(p: Array<String>): T
abstract fun addArguments(p: Array<String>): LongRunningOperation
addJvmArguments
Link copied to clipboard
abstract fun addJvmArguments(p: Array<String>): T
abstract fun addJvmArguments(p: Array<String>): LongRunningOperation
addProgressListener
Link copied to clipboard
abstract fun addProgressListener(p: ProgressListener): T
abstract fun addProgressListener(p: ProgressListener): LongRunningOperation
forTasks
Link copied to clipboard
abstract fun forTasks(tasks: Iterable<String>): BuildActionExecuter<T>
abstract fun forTasks(tasks: Array<String>): BuildActionExecuter<T>
Specifies the tasks to execute before executing the BuildAction.
run
Link copied to clipboard
abstract fun run(): T
Runs the action, blocking until its result is available.
abstract fun run(handler: ResultHandler<in T>)
Starts executing the action, passing the result to the given handler when complete.
setColorOutput
Link copied to clipboard
abstract fun setColorOutput(p: Boolean): T
abstract fun setColorOutput(p: Boolean): LongRunningOperation
setEnvironmentVariables
Link copied to clipboard
abstract fun setEnvironmentVariables(p: Map<String, String>): T
abstract fun setEnvironmentVariables(p: Map<String, String>): LongRunningOperation
setJavaHome
Link copied to clipboard
abstract fun setJavaHome(p: File): T
abstract fun setJavaHome(p: File): LongRunningOperation
setJvmArguments
Link copied to clipboard
abstract fun setJvmArguments(p: Array<String>): T
abstract fun setJvmArguments(p: Array<String>): LongRunningOperation
setStandardError
Link copied to clipboard
abstract fun setStandardError(p: OutputStream): T
abstract fun setStandardError(p: OutputStream): LongRunningOperation
setStandardInput
Link copied to clipboard
abstract fun setStandardInput(p: InputStream): T
abstract fun setStandardInput(p: InputStream): LongRunningOperation
setStandardOutput
Link copied to clipboard
abstract fun setStandardOutput(p: OutputStream): T
abstract fun setStandardOutput(p: OutputStream): LongRunningOperation
setStreamedValueListener
Link copied to clipboard
@Incubating
abstract fun setStreamedValueListener(listener: StreamedValueListener)
Sets the listener to use to streamed values sent from the action via send.
withArguments
Link copied to clipboard
abstract fun withArguments(p: Array<String>): T
abstract fun withArguments(p: Array<String>): LongRunningOperation
withCancellationToken
Link copied to clipboard
abstract fun withCancellationToken(p: CancellationToken): T
abstract fun withCancellationToken(p: CancellationToken): LongRunningOperation
withSystemProperties
Link copied to clipboard
abstract fun withSystemProperties(p: Map<String, String>): T
abstract fun withSystemProperties(p: Map<String, String>): LongRunningOperation