Search in sources :

Example 1 with TaskExecutionOutcome

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++;
    }
}
Also used : TaskStateInternal(org.gradle.api.internal.tasks.TaskStateInternal) TaskExecutionOutcome(org.gradle.api.internal.tasks.TaskExecutionOutcome)

Aggregations

TaskExecutionOutcome (org.gradle.api.internal.tasks.TaskExecutionOutcome)1 TaskStateInternal (org.gradle.api.internal.tasks.TaskStateInternal)1