org.gradle.BuildAdapter Java Examples
The following examples show how to use
org.gradle.BuildAdapter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultGradle.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public DefaultGradle(Gradle parent, StartParameter startParameter, ServiceRegistryFactory parentRegistry) { this.parent = parent; this.startParameter = startParameter; this.services = parentRegistry.createFor(this); this.listenerManager = services.get(ListenerManager.class); taskGraph = services.get(TaskGraphExecuter.class); distributionLocator = services.get(GradleDistributionLocator.class); classLoaderScope = services.get(ClassLoaderScopeRegistry.class).getCoreAndPluginsScope(); pluginContainer = services.get(PluginContainer.class); fileResolver = services.get(FileResolver.class); scriptPluginFactory = services.get(ScriptPluginFactory.class); scriptHandlerFactory = services.get(ScriptHandlerFactory.class); buildListenerBroadcast = listenerManager.createAnonymousBroadcaster(BuildListener.class); projectEvaluationListenerBroadcast = listenerManager.createAnonymousBroadcaster(ProjectEvaluationListener.class); buildListenerBroadcast.add(new BuildAdapter() { @Override public void projectsLoaded(Gradle gradle) { rootProjectActions.execute(rootProject); rootProjectActions = null; } }); }
Example #2
Source File: DefaultGradle.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public DefaultGradle(Gradle parent, StartParameter startParameter, ServiceRegistryFactory parentRegistry) { this.parent = parent; this.startParameter = startParameter; this.services = parentRegistry.createFor(this); this.listenerManager = services.get(ListenerManager.class); taskGraph = services.get(TaskGraphExecuter.class); distributionLocator = services.get(GradleDistributionLocator.class); classLoaderScope = services.get(ClassLoaderScope.class); pluginContainer = services.get(PluginContainer.class); fileResolver = services.get(FileResolver.class); scriptPluginFactory = services.get(ScriptPluginFactory.class); scriptHandlerFactory = services.get(ScriptHandlerFactory.class); buildListenerBroadcast = listenerManager.createAnonymousBroadcaster(BuildListener.class); projectEvaluationListenerBroadcast = listenerManager.createAnonymousBroadcaster(ProjectEvaluationListener.class); buildListenerBroadcast.add(new BuildAdapter() { @Override public void projectsLoaded(Gradle gradle) { rootProjectActions.execute(rootProject); rootProjectActions = null; } }); }
Example #3
Source File: DefaultGradle.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public DefaultGradle(Gradle parent, StartParameter startParameter, ServiceRegistryFactory parentRegistry) { this.parent = parent; this.startParameter = startParameter; this.services = parentRegistry.createFor(this); this.listenerManager = services.get(ListenerManager.class); taskGraph = services.get(TaskGraphExecuter.class); distributionLocator = services.get(GradleDistributionLocator.class); classLoaderScope = services.get(ClassLoaderScopeRegistry.class).getCoreAndPluginsScope(); pluginContainer = services.get(PluginContainer.class); fileResolver = services.get(FileResolver.class); scriptPluginFactory = services.get(ScriptPluginFactory.class); scriptHandlerFactory = services.get(ScriptHandlerFactory.class); buildListenerBroadcast = listenerManager.createAnonymousBroadcaster(BuildListener.class); projectEvaluationListenerBroadcast = listenerManager.createAnonymousBroadcaster(ProjectEvaluationListener.class); buildListenerBroadcast.add(new BuildAdapter() { @Override public void projectsLoaded(Gradle gradle) { rootProjectActions.execute(rootProject); rootProjectActions = null; } }); }
Example #4
Source File: DefaultGradle.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public DefaultGradle(Gradle parent, StartParameter startParameter, ServiceRegistryFactory parentRegistry) { this.parent = parent; this.startParameter = startParameter; this.services = parentRegistry.createFor(this); this.listenerManager = services.get(ListenerManager.class); taskGraph = services.get(TaskGraphExecuter.class); distributionLocator = services.get(GradleDistributionLocator.class); classLoaderScope = services.get(ClassLoaderScope.class); pluginContainer = services.get(PluginContainer.class); fileResolver = services.get(FileResolver.class); scriptPluginFactory = services.get(ScriptPluginFactory.class); scriptHandlerFactory = services.get(ScriptHandlerFactory.class); buildListenerBroadcast = listenerManager.createAnonymousBroadcaster(BuildListener.class); projectEvaluationListenerBroadcast = listenerManager.createAnonymousBroadcaster(ProjectEvaluationListener.class); buildListenerBroadcast.add(new BuildAdapter() { @Override public void projectsLoaded(Gradle gradle) { rootProjectActions.execute(rootProject); rootProjectActions = null; } }); }