use of org.gradle.launcher.daemon.configuration.DaemonParameters in project gradle by gradle.
the class ConnectionScopeServices method createShutdownCoordinator.
ShutdownCoordinator createShutdownCoordinator(ListenerManager listenerManager, DaemonClientFactory daemonClientFactory, OutputEventListener outputEventListener) {
ServiceRegistry clientServices = daemonClientFactory.createStopDaemonServices(outputEventListener, new DaemonParameters(new BuildLayoutParameters()));
DaemonStopClient client = clientServices.get(DaemonStopClient.class);
ShutdownCoordinator shutdownCoordinator = new ShutdownCoordinator(client);
listenerManager.addListener(shutdownCoordinator);
return shutdownCoordinator;
}
use of org.gradle.launcher.daemon.configuration.DaemonParameters in project gradle by gradle.
the class ParametersConverter method convert.
public Parameters convert(ParsedCommandLine args, @Nullable File currentDir) throws CommandLineArgumentException {
InitialProperties initialProperties = initialPropertiesConverter.convert(args);
BuildLayoutResult buildLayout = buildLayoutConverter.convert(initialProperties, args, currentDir);
AllProperties properties = layoutToPropertiesConverter.convert(initialProperties, buildLayout);
StartParameterInternal startParameter = new StartParameterInternal();
startParameterConverter.convert(args, buildLayout, properties, startParameter);
DaemonParameters daemonParameters = new DaemonParameters(buildLayout, fileCollectionFactory, properties.getRequestedSystemProperties());
daemonParametersConverter.convert(args, properties, daemonParameters);
return new Parameters(buildLayout, startParameter, daemonParameters);
}
use of org.gradle.launcher.daemon.configuration.DaemonParameters in project gradle by gradle.
the class DaemonBuildActionExecuter method execute.
@Override
public BuildActionResult execute(BuildAction action, ConnectionOperationParameters parameters, BuildRequestContext buildRequestContext) {
ProviderOperationParameters operationParameters = parameters.getOperationParameters();
ClassPath classPath = DefaultClassPath.of(operationParameters.getInjectedPluginClasspath());
DaemonParameters daemonParameters = parameters.getDaemonParameters();
BuildActionParameters actionParameters = new DefaultBuildActionParameters(daemonParameters.getEffectiveSystemProperties(), daemonParameters.getEnvironmentVariables(), SystemProperties.getInstance().getCurrentDir(), operationParameters.getBuildLogLevel(), daemonParameters.isEnabled(), classPath);
return executer.execute(action, actionParameters, buildRequestContext);
}
Aggregations