Search in sources :

Example 1 with DefaultContinuousExecutionGate

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);
        }
    }
}
Also used : DefaultCancellableOperationManager(org.gradle.execution.DefaultCancellableOperationManager) PassThruCancellableOperationManager(org.gradle.execution.PassThruCancellableOperationManager) CancellableOperationManager(org.gradle.execution.CancellableOperationManager) DefaultContinuousExecutionGate(org.gradle.deployment.internal.DefaultContinuousExecutionGate)

Aggregations

DefaultContinuousExecutionGate (org.gradle.deployment.internal.DefaultContinuousExecutionGate)1 CancellableOperationManager (org.gradle.execution.CancellableOperationManager)1 DefaultCancellableOperationManager (org.gradle.execution.DefaultCancellableOperationManager)1 PassThruCancellableOperationManager (org.gradle.execution.PassThruCancellableOperationManager)1