use of org.gradle.initialization.BuildLayoutParameters 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.initialization.BuildLayoutParameters in project gradle by gradle.
the class DefaultConnection method configure.
/**
* This is used by consumers 1.2-rc-1 and later.
*/
public void configure(ConnectionParameters parameters) {
assertUsingJava7();
ProviderConnectionParameters providerConnectionParameters = new ProtocolToModelAdapter().adapt(ProviderConnectionParameters.class, parameters);
File gradleUserHomeDir = providerConnectionParameters.getGradleUserHomeDir(null);
if (gradleUserHomeDir == null) {
gradleUserHomeDir = new BuildLayoutParameters().getGradleUserHomeDir();
}
initializeServices(gradleUserHomeDir);
connection.configure(providerConnectionParameters);
consumerVersion = GradleVersion.version(providerConnectionParameters.getConsumerVersion());
}
Aggregations