Long Running Operation
Offers ways to communicate both ways with a Gradle operation, be it building a model or running tasks.
Enables tracking progress via listeners that will receive events from the Gradle operation.
Allows providing standard output streams that will receive output if the Gradle operation writes to standard streams.
Allows providing standard input that can be consumed by the gradle operation (useful for interactive builds).
Enables configuring the build run / model request with options like the Java home or JVM arguments. Those settings might not be supported by the target Gradle version. Refer to Javadoc for those methods to understand what kind of exception throw and when is it thrown.
Since
1.0-milestone-7
Inheritors
Functions
Link copied to clipboard
Appends new command line arguments to the existing list.
Link copied to clipboard
Appends Java VM arguments to the existing list.
Link copied to clipboard
Adds a progress listener which will receive progress events as the operation runs.
Adds a progress listener which will receive progress events of all types as the operation runs.
abstract fun addProgressListener(listener: ProgressListener, operationTypes: Set<OperationType>): LongRunningOperation
abstract fun addProgressListener(listener: ProgressListener, operationTypes: Array<OperationType>): LongRunningOperation
Adds a progress listener which will receive progress events as the operations of the requested type run.
Link copied to clipboard
Specifies whether to generate colored (ANSI encoded) output for logging.
Link copied to clipboard
abstract fun setEnvironmentVariables(@Nullable envVariables: Map<String, String>): LongRunningOperation
Specifies the environment variables to use for this operation.
Link copied to clipboard
Specifies the Java home directory to use for this operation.
Link copied to clipboard
Specifies the Java VM arguments to use for this operation.
Link copied to clipboard
Sets the OutputStream which should receive standard error logging generated while running the operation.
Link copied to clipboard
Sets the java.io.InputStream that will be used as standard input for this operation.
Link copied to clipboard
Sets the java.io.OutputStream which should receive standard output logging generated while running the operation.
Link copied to clipboard
Specify the command line build arguments.
Link copied to clipboard
Sets the cancellation token to use to cancel the operation if required.
Link copied to clipboard
Sets system properties to pass to the build.