use of org.gradle.tooling.internal.provider.events.DefaultTaskStartedProgressEvent in project gradle by gradle.
the class ClientForwardingTaskOperationListener method started.
@Override
public void started(BuildOperationInternal buildOperation, OperationStartEvent startEvent) {
if (skipEvents.contains(buildOperation.getParentId())) {
skipEvents.add(buildOperation.getId());
return;
}
if (buildOperation.getOperationDescriptor() instanceof TaskOperationDescriptor) {
if (clientSubscriptions.isSendTaskProgressEvents()) {
TaskInternal task = ((TaskOperationDescriptor) buildOperation.getOperationDescriptor()).getTask();
eventConsumer.dispatch(new DefaultTaskStartedProgressEvent(startEvent.getStartTime(), toTaskDescriptor(buildOperation, task)));
} else {
// Discard this operation and all children
skipEvents.add(buildOperation.getId());
}
} else {
delegate.started(buildOperation, startEvent);
}
}
use of org.gradle.tooling.internal.provider.events.DefaultTaskStartedProgressEvent in project gradle by gradle.
the class ClientForwardingTaskOperationListener method started.
@Override
public void started(BuildOperationDescriptor buildOperation, OperationStartEvent startEvent) {
OperationIdentifier parentId = buildOperation.getParentId();
if (parentId != null && skipEvents.contains(parentId)) {
skipEvents.add(buildOperation.getId());
return;
}
if (buildOperation.getDetails() instanceof ExecuteTaskBuildOperationDetails) {
if (clientSubscriptions.isSendTaskProgressEvents()) {
Task task = ((ExecuteTaskBuildOperationDetails) buildOperation.getDetails()).getTask();
eventConsumer.dispatch(new DefaultTaskStartedProgressEvent(startEvent.getStartTime(), toTaskDescriptor(buildOperation, (TaskInternal) task)));
} else {
// Discard this operation and all children
skipEvents.add(buildOperation.getId());
}
} else {
delegate.started(buildOperation, startEvent);
}
}
Aggregations