use of org.gradle.internal.concurrent.DefaultParallelismConfiguration in project gradle by gradle.
the class ParallelismConfigurationBuildActionExecuter method execute.
@Override
public Object execute(BuildAction action, BuildRequestContext requestContext, BuildActionParameters actionParameters, ServiceRegistry contextServices) {
StartParameter startParameter = action.getStartParameter();
parallelismConfigurationManager.setParallelismConfiguration(new DefaultParallelismConfiguration(startParameter.isParallelProjectExecutionEnabled(), startParameter.getMaxWorkerCount()));
try {
return delegate.execute(action, requestContext, actionParameters, contextServices);
} finally {
parallelismConfigurationManager.setParallelismConfiguration(DefaultParallelismConfiguration.DEFAULT);
}
}
Aggregations