use of org.gradle.api.internal.tasks.TaskExecutionOutcome in project gradle by gradle.
the class TaskExecutionStatisticsEventAdapter method afterExecute.
@Override
public void afterExecute(Task task, TaskState state) {
TaskStateInternal stateInternal = (TaskStateInternal) state;
TaskExecutionOutcome outcome = stateInternal.getOutcome();
taskCounts.put(outcome, taskCounts.get(outcome) + 1);
if (outcome == TaskExecutionOutcome.EXECUTED && stateInternal.getTaskOutputCaching().isEnabled()) {
cacheMissCount++;
}
}
Aggregations