Class BuildProgressListenerAdapter
- java.lang.Object
-
- org.gradle.tooling.internal.consumer.parameters.BuildProgressListenerAdapter
-
- All Implemented Interfaces:
InternalBuildProgressListener
public class BuildProgressListenerAdapter extends java.lang.Object implements InternalBuildProgressListener
Converts progress events sent from the tooling provider to the tooling client to the corresponding event types available on the public Tooling API, and broadcasts the converted events to the matching progress listeners. This adapter handles all the different incoming progress event types (except the original logging-derived progress listener).
-
-
Field Summary
-
Fields inherited from interface org.gradle.tooling.internal.protocol.InternalBuildProgressListener
BUILD_EXECUTION, PROJECT_CONFIGURATION_EXECUTION, TASK_EXECUTION, TEST_EXECUTION, TEST_OUTPUT, TRANSFORM_EXECUTION, WORK_ITEM_EXECUTION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getSubscribedOperations()
Returns the type of operations that the listener wants to subscribe to.void
onEvent(java.lang.Object event)
Invoked when a progress event happens in the build being run, and one or more listeners for the given event type have been registered.static TaskOperationResult
toTaskResult(InternalTaskResult result)
-
-
-
Method Detail
-
getSubscribedOperations
public java.util.List<java.lang.String> getSubscribedOperations()
Description copied from interface:InternalBuildProgressListener
Returns the type of operations that the listener wants to subscribe to.- Specified by:
getSubscribedOperations
in interfaceInternalBuildProgressListener
- Returns:
- the type of operations to be notified about
-
onEvent
public void onEvent(java.lang.Object event)
Description copied from interface:InternalBuildProgressListener
Invoked when a progress event happens in the build being run, and one or more listeners for the given event type have been registered. The event types implemented in Gradle 2.4 are: The event types implemented in Gradle 2.5 are:InternalProgressEvent
- used for all operation types.InternalTestProgressEvent
- test events also implement these types for backwards compatibility
- Specified by:
onEvent
in interfaceInternalBuildProgressListener
- Parameters:
event
- The issued progress event
-
toTaskResult
public static TaskOperationResult toTaskResult(InternalTaskResult result)
-
-