Search in sources :

Example 1 with TaskExecutionGraphInternal

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();
}
Also used : BuildOutputCleanupRegistry(org.gradle.internal.execution.BuildOutputCleanupRegistry) TaskExecutionGraphInternal(org.gradle.execution.taskgraph.TaskExecutionGraphInternal)

Example 2 with TaskExecutionGraphInternal

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);
}
Also used : TaskExecutionGraphInternal(org.gradle.execution.taskgraph.TaskExecutionGraphInternal) LinkedList(java.util.LinkedList)

Aggregations

TaskExecutionGraphInternal (org.gradle.execution.taskgraph.TaskExecutionGraphInternal)2 LinkedList (java.util.LinkedList)1 BuildOutputCleanupRegistry (org.gradle.internal.execution.BuildOutputCleanupRegistry)1