use of org.gradle.initialization.DefaultContinuousExecutionGate in project gradle by gradle.
the class ContinuousBuildActionExecuter method execute.
@Override
public Object execute(BuildAction action, BuildRequestContext requestContext, final BuildActionParameters actionParameters, ServiceRegistry buildSessionScopeServices) {
BuildCancellationToken cancellationToken = requestContext.getCancellationToken();
if (actionParameters.isContinuous()) {
SingleMessageLogger.incubatingFeatureUsed("Continuous build");
DefaultContinuousExecutionGate alwaysOpenExecutionGate = new DefaultContinuousExecutionGate();
final CancellableOperationManager cancellableOperationManager = createCancellableOperationManager(actionParameters, cancellationToken);
return executeMultipleBuilds(action, requestContext, actionParameters, buildSessionScopeServices, cancellableOperationManager, alwaysOpenExecutionGate);
} else {
try {
return delegate.execute(action, requestContext, actionParameters, buildSessionScopeServices);
} finally {
final CancellableOperationManager cancellableOperationManager = createCancellableOperationManager(actionParameters, cancellationToken);
waitForDeployments(action, requestContext, actionParameters, buildSessionScopeServices, cancellableOperationManager);
}
}
}
Aggregations