use of org.gradle.deployment.internal.DefaultContinuousExecutionGate in project gradle by gradle.
the class ContinuousBuildActionExecutor method execute.
@Override
public BuildActionRunner.Result execute(BuildAction action, BuildSessionContext buildSession) {
if (action.getStartParameter().isContinuous()) {
DefaultContinuousExecutionGate alwaysOpenExecutionGate = new DefaultContinuousExecutionGate();
final CancellableOperationManager cancellableOperationManager = createCancellableOperationManager(requestMetaData, cancellationToken);
return executeMultipleBuilds(action, requestMetaData, buildSession, cancellationToken, cancellableOperationManager, alwaysOpenExecutionGate);
} else {
try {
return delegate.execute(action, buildSession);
} finally {
final CancellableOperationManager cancellableOperationManager = createCancellableOperationManager(requestMetaData, cancellationToken);
waitForDeployments(action, requestMetaData, buildSession, cancellationToken, cancellableOperationManager);
}
}
}
Aggregations