# ConfigurableLauncher

interface ConfigurableLauncher<T : ConfigurableLauncher<T>?> : LongRunningOperation(source)

A `ConfigurableLauncher` allows you to configure a long running operation.

#### Since

2.6

#### Parameters

<T>

the ConfigurableLauncher implementation to return as part of the fluent API.

#### Inheritors

ModelBuilder
TestLauncher
BuildActionExecuter
BuildLauncher

## Functions

addArguments
Link copied to clipboard
abstract fun addArguments(arguments: Iterable<String>): T
abstract fun addArguments(arguments: Array<String>): T
Appends new command line arguments to the existing list.
addJvmArguments
Link copied to clipboard
abstract fun addJvmArguments(jvmArguments: Iterable<String>): T
abstract fun addJvmArguments(jvmArguments: Array<String>): T
Appends Java VM arguments to the existing list.
addProgressListener
Link copied to clipboard
abstract fun addProgressListener(listener: ProgressListener): T
Adds a progress listener which will receive progress events as the operation runs.
abstract fun addProgressListener(listener: ProgressListener): T
Adds a progress listener which will receive progress events of all types as the operation runs.
abstract fun addProgressListener(listener: ProgressListener, eventTypes: Set<OperationType>): T
abstract fun addProgressListener(listener: ProgressListener, operationTypes: Array<OperationType>): T
Adds a progress listener which will receive progress events as the operations of the requested type run.
setColorOutput
Link copied to clipboard
abstract fun setColorOutput(colorOutput: Boolean): T
Specifies whether to generate colored (ANSI encoded) output for logging.
setEnvironmentVariables
Link copied to clipboard
abstract fun setEnvironmentVariables(envVariables: Map<String, String>): T
Specifies the environment variables to use for this operation.
setJavaHome
Link copied to clipboard
abstract fun setJavaHome(javaHome: File): T
Specifies the Java home directory to use for this operation.
setJvmArguments
Link copied to clipboard
abstract fun setJvmArguments(jvmArguments: Iterable<String>): T
abstract fun setJvmArguments(jvmArguments: Array<String>): T
Specifies the Java VM arguments to use for this operation.
setStandardError
Link copied to clipboard
abstract fun setStandardError(outputStream: OutputStream): T
Sets the which should receive standard error logging generated while running the operation.
setStandardInput
Link copied to clipboard
abstract fun setStandardInput(inputStream: InputStream): T
Sets the that will be used as standard input for this operation.
setStandardOutput
Link copied to clipboard
abstract fun setStandardOutput(outputStream: OutputStream): T
Sets the which should receive standard output logging generated while running the operation.
withArguments
Link copied to clipboard
abstract fun withArguments(arguments: Iterable<String>): T
abstract fun withArguments(arguments: Array<String>): T
Specify the command line build arguments.
withCancellationToken
Link copied to clipboard
abstract fun withCancellationToken(cancellationToken: CancellationToken): T
Sets the cancellation token to use to cancel the operation if required.
withDetailedFailure
Link copied to clipboard
abstract fun withDetailedFailure(): T
Adds more detailed information about the build failure to the that provides insights into the reasons for the failure, making it easier to diagnose and fix issues.
withSystemProperties
Link copied to clipboard
abstract fun withSystemProperties(systemProperties: Map<String, String>): T
Sets system properties to pass to the build.