org.gradle.BuildListener Java Examples
The following examples show how to use
org.gradle.BuildListener.
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: DefaultGradleLauncher.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
/** * Creates a new instance. */ public DefaultGradleLauncher(GradleInternal gradle, InitScriptHandler initScriptHandler, SettingsHandler settingsHandler, BuildLoader buildLoader, BuildConfigurer buildConfigurer, BuildListener buildListener, ExceptionAnalyser exceptionAnalyser, LoggingManagerInternal loggingManager, ModelConfigurationListener modelConfigurationListener, TasksCompletionListener tasksCompletionListener, BuildExecuter buildExecuter, BuildCompletionListener buildCompletionListener, Closeable buildServices) { this.gradle = gradle; this.initScriptHandler = initScriptHandler; this.settingsHandler = settingsHandler; this.buildLoader = buildLoader; this.buildConfigurer = buildConfigurer; this.exceptionAnalyser = exceptionAnalyser; this.buildListener = buildListener; this.loggingManager = loggingManager; this.modelConfigurationListener = modelConfigurationListener; this.tasksCompletionListener = tasksCompletionListener; this.buildExecuter = buildExecuter; this.buildCompletionListener = buildCompletionListener; this.buildServices = buildServices; }
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(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 #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: DefaultGradleLauncher.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
/** * Creates a new instance. */ public DefaultGradleLauncher(GradleInternal gradle, InitScriptHandler initScriptHandler, SettingsHandler settingsHandler, BuildLoader buildLoader, BuildConfigurer buildConfigurer, BuildListener buildListener, ExceptionAnalyser exceptionAnalyser, LoggingManagerInternal loggingManager, ModelConfigurationListener modelConfigurationListener, TasksCompletionListener tasksCompletionListener, BuildExecuter buildExecuter, BuildCompletionListener buildCompletionListener, Closeable buildServices) { this.gradle = gradle; this.initScriptHandler = initScriptHandler; this.settingsHandler = settingsHandler; this.buildLoader = buildLoader; this.buildConfigurer = buildConfigurer; this.exceptionAnalyser = exceptionAnalyser; this.buildListener = buildListener; this.loggingManager = loggingManager; this.modelConfigurationListener = modelConfigurationListener; this.tasksCompletionListener = tasksCompletionListener; this.buildExecuter = buildExecuter; this.buildCompletionListener = buildCompletionListener; this.buildServices = buildServices; }
Example #5
Source File: DefaultGradleLauncher.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
/** * Creates a new instance. Don't call this directly, use {@link #newInstance(org.gradle.StartParameter)} or {@link * #newInstance(String...)} instead. */ public DefaultGradleLauncher(GradleInternal gradle, InitScriptHandler initScriptHandler, SettingsHandler settingsHandler, BuildLoader buildLoader, BuildConfigurer buildConfigurer, BuildListener buildListener, ExceptionAnalyser exceptionAnalyser, LoggingManagerInternal loggingManager, ModelConfigurationListener modelConfigurationListener, TasksCompletionListener tasksCompletionListener, BuildExecuter buildExecuter) { this.gradle = gradle; this.initScriptHandler = initScriptHandler; this.settingsHandler = settingsHandler; this.buildLoader = buildLoader; this.buildConfigurer = buildConfigurer; this.exceptionAnalyser = exceptionAnalyser; this.buildListener = buildListener; this.loggingManager = loggingManager; this.modelConfigurationListener = modelConfigurationListener; this.tasksCompletionListener = tasksCompletionListener; this.buildExecuter = buildExecuter; }
Example #6
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; } }); }
Example #7
Source File: DefaultGradleLauncher.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
/** * Creates a new instance. Don't call this directly, use {@link #newInstance(org.gradle.StartParameter)} or {@link * #newInstance(String...)} instead. */ public DefaultGradleLauncher(GradleInternal gradle, InitScriptHandler initScriptHandler, SettingsHandler settingsHandler, BuildLoader buildLoader, BuildConfigurer buildConfigurer, BuildListener buildListener, ExceptionAnalyser exceptionAnalyser, LoggingManagerInternal loggingManager, ModelConfigurationListener modelConfigurationListener, TasksCompletionListener tasksCompletionListener, BuildExecuter buildExecuter) { this.gradle = gradle; this.initScriptHandler = initScriptHandler; this.settingsHandler = settingsHandler; this.buildLoader = buildLoader; this.buildConfigurer = buildConfigurer; this.exceptionAnalyser = exceptionAnalyser; this.buildListener = buildListener; this.loggingManager = loggingManager; this.modelConfigurationListener = modelConfigurationListener; this.tasksCompletionListener = tasksCompletionListener; this.buildExecuter = buildExecuter; }
Example #8
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 #9
Source File: DefaultGradle.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public BuildListener getBuildListenerBroadcaster() { return buildListenerBroadcast.getSource(); }
Example #10
Source File: DefaultGradle.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void addBuildListener(BuildListener buildListener) { addListener(buildListener); }
Example #11
Source File: DefaultGradle.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public BuildListener getBuildListenerBroadcaster() { return buildListenerBroadcast.getSource(); }
Example #12
Source File: DefaultGradle.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void addBuildListener(BuildListener buildListener) { addListener(buildListener); }
Example #13
Source File: DefaultGradle.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void addBuildListener(BuildListener buildListener) { addListener(buildListener); }
Example #14
Source File: DefaultGradle.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public BuildListener getBuildListenerBroadcaster() { return buildListenerBroadcast.getSource(); }
Example #15
Source File: DefaultGradle.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void addBuildListener(BuildListener buildListener) { addListener(buildListener); }
Example #16
Source File: DefaultGradle.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public BuildListener getBuildListenerBroadcaster() { return buildListenerBroadcast.getSource(); }
Example #17
Source File: GradleInternal.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the broadcaster for {@link BuildListener} events */ BuildListener getBuildListenerBroadcaster();
Example #18
Source File: Gradle.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Adds a {@link BuildListener} to this Build instance. * * The listener is notified of events which occur during the execution of the build. * * @param buildListener The listener to add. */ void addBuildListener(BuildListener buildListener);
Example #19
Source File: Gradle.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Adds a {@link BuildListener} to this Build instance. * * The listener is notified of events which occur during the execution of the build. * * @param buildListener The listener to add. */ void addBuildListener(BuildListener buildListener);
Example #20
Source File: GradleInternal.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the broadcaster for {@link BuildListener} events */ BuildListener getBuildListenerBroadcaster();
Example #21
Source File: Gradle.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Adds a {@link BuildListener} to this Build instance. * * The listener is notified of events which occur during the execution of the build. * * @param buildListener The listener to add. */ void addBuildListener(BuildListener buildListener);
Example #22
Source File: GradleInternal.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the broadcaster for {@link BuildListener} events */ BuildListener getBuildListenerBroadcaster();
Example #23
Source File: Gradle.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Adds a {@link BuildListener} to this Build instance. * * The listener is notified of events which occur during the execution of the build. * * @param buildListener The listener to add. */ void addBuildListener(BuildListener buildListener);
Example #24
Source File: GradleInternal.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the broadcaster for {@link BuildListener} events */ BuildListener getBuildListenerBroadcaster();