use of org.gradle.api.internal.TaskOutputCachingState in project gradle by gradle.
the class ResolveTaskOutputCachingStateExecuter method execute.
@Override
public void execute(TaskInternal task, TaskStateInternal state, TaskExecutionContext context) {
try {
TaskOutputCachingState taskOutputCachingState = task.getOutputs().getCachingState();
state.setTaskOutputCaching(taskOutputCachingState);
if (!taskOutputCachingState.isEnabled()) {
LOGGER.info("Caching disabled for {}: {}", task, taskOutputCachingState.getDisabledReason());
}
} catch (Exception t) {
throw new GradleException(String.format("Could not evaluate TaskOutputs.getCachingState().isEnabled() for %s.", task), t);
}
delegate.execute(task, state, context);
}
Aggregations