use of org.gradle.execution.taskgraph.TaskExecutionGraphInternal in project gradle by gradle.
the class DefaultBuildWorkPreparer method finalizeWorkGraph.
@Override
public void finalizeWorkGraph(GradleInternal gradle, ExecutionPlan plan) {
TaskExecutionGraphInternal taskGraph = gradle.getTaskGraph();
taskGraph.populate(plan);
BuildOutputCleanupRegistry buildOutputCleanupRegistry = gradle.getServices().get(BuildOutputCleanupRegistry.class);
buildOutputCleanupRegistry.resolveOutputs();
}
use of org.gradle.execution.taskgraph.TaskExecutionGraphInternal in project gradle by gradle.
the class SelectedTaskExecutionAction method execute.
@Override
public ExecutionResult<Void> execute(GradleInternal gradle, ExecutionPlan plan) {
TaskExecutionGraphInternal taskGraph = gradle.getTaskGraph();
if (gradle.getStartParameter().isContinueOnFailure()) {
taskGraph.setContinueOnFailure(true);
}
bindAllReferencesOfProject(taskGraph);
List<Throwable> taskFailures = new LinkedList<>();
taskGraph.execute(plan, taskFailures);
return ExecutionResult.maybeFailed(taskFailures);
}
Aggregations