Search in sources :

Example 1 with DefaultTaskFinishedProgressEvent

use of org.gradle.internal.build.event.types.DefaultTaskFinishedProgressEvent in project gradle by gradle.

the class TaskOperationMapper method createFinishedEvent.

@Override
public InternalOperationFinishedProgressEvent createFinishedEvent(DefaultTaskDescriptor descriptor, ExecuteTaskBuildOperationDetails details, OperationFinishEvent finishEvent) {
    TaskInternal task = details.getTask();
    AbstractTaskResult taskResult = operationResultPostProcessor.process(toTaskResult(task, finishEvent), descriptor.getId());
    return new DefaultTaskFinishedProgressEvent(finishEvent.getEndTime(), descriptor, taskResult);
}
Also used : DefaultTaskFinishedProgressEvent(org.gradle.internal.build.event.types.DefaultTaskFinishedProgressEvent) TaskInternal(org.gradle.api.internal.TaskInternal) AbstractTaskResult(org.gradle.internal.build.event.types.AbstractTaskResult)

Aggregations

TaskInternal (org.gradle.api.internal.TaskInternal)1 AbstractTaskResult (org.gradle.internal.build.event.types.AbstractTaskResult)1 DefaultTaskFinishedProgressEvent (org.gradle.internal.build.event.types.DefaultTaskFinishedProgressEvent)1