org.gradle.api.execution.TaskExecutionGraphListener Java Examples
The following examples show how to use
org.gradle.api.execution.TaskExecutionGraphListener.
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: BasePlugin.java From javaide with GNU General Public License v3.0 | 5 votes |
protected void configureProject() { extraModelInfo = new ExtraModelInfo(project, isLibrary()); sdkHandler = new SdkHandler(project, getLogger()); androidBuilder = new AndroidBuilder( project == project.getRootProject() ? project.getName() : project.getPath(), "Android Gradle Java N-IDE", new GradleProcessExecutor(project), new GradleJavaProcessExecutor(project), extraModelInfo, getLogger(), isVerbose()); // project.getPlugins().apply(JavaBasePlugin.class); // call back on execution. This is called after the whole build is done (not // after the current project is done). // This is will be called for each (android) projects though, so this should support // being called 2+ times. project.getGradle().getTaskGraph().addTaskExecutionGraphListener( new TaskExecutionGraphListener() { @Override public void graphPopulated(TaskExecutionGraph taskGraph) { for (Task task : taskGraph.getAllTasks()) { if (task instanceof PreDex) { PreDexCache.getCache().load( new File(project.getRootProject().getBuildDir(), FD_INTERMEDIATES + "/dex-cache/cache.xml")); break; } } } }); }
Example #2
Source File: DefaultTaskGraphExecuter.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public DefaultTaskGraphExecuter(ListenerManager listenerManager, TaskPlanExecutor taskPlanExecutor, BuildCancellationToken cancellationToken) { this.taskPlanExecutor = taskPlanExecutor; graphListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionGraphListener.class); taskListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionListener.class); taskExecutionPlan = new DefaultTaskExecutionPlan(cancellationToken); }
Example #3
Source File: DefaultTaskGraphExecuter.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void addTaskExecutionGraphListener(TaskExecutionGraphListener listener) { graphListeners.add(listener); }
Example #4
Source File: DefaultTaskGraphExecuter.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void removeTaskExecutionGraphListener(TaskExecutionGraphListener listener) { graphListeners.remove(listener); }
Example #5
Source File: DefaultTaskGraphExecuter.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public DefaultTaskGraphExecuter(ListenerManager listenerManager, TaskPlanExecutor taskPlanExecutor) { this.taskPlanExecutor = taskPlanExecutor; graphListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionGraphListener.class); taskListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionListener.class); }
Example #6
Source File: DefaultTaskGraphExecuter.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void addTaskExecutionGraphListener(TaskExecutionGraphListener listener) { graphListeners.add(listener); }
Example #7
Source File: DefaultTaskGraphExecuter.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void removeTaskExecutionGraphListener(TaskExecutionGraphListener listener) { graphListeners.remove(listener); }
Example #8
Source File: DefaultTaskGraphExecuter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public DefaultTaskGraphExecuter(ListenerManager listenerManager, TaskPlanExecutor taskPlanExecutor, BuildCancellationToken cancellationToken) { this.taskPlanExecutor = taskPlanExecutor; graphListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionGraphListener.class); taskListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionListener.class); taskExecutionPlan = new DefaultTaskExecutionPlan(cancellationToken); }
Example #9
Source File: DefaultTaskGraphExecuter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void addTaskExecutionGraphListener(TaskExecutionGraphListener listener) { graphListeners.add(listener); }
Example #10
Source File: DefaultTaskGraphExecuter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void removeTaskExecutionGraphListener(TaskExecutionGraphListener listener) { graphListeners.remove(listener); }
Example #11
Source File: DefaultTaskGraphExecuter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public DefaultTaskGraphExecuter(ListenerManager listenerManager, TaskPlanExecutor taskPlanExecutor) { this.taskPlanExecutor = taskPlanExecutor; graphListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionGraphListener.class); taskListeners = listenerManager.createAnonymousBroadcaster(TaskExecutionListener.class); }
Example #12
Source File: DefaultTaskGraphExecuter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void addTaskExecutionGraphListener(TaskExecutionGraphListener listener) { graphListeners.add(listener); }
Example #13
Source File: DefaultTaskGraphExecuter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void removeTaskExecutionGraphListener(TaskExecutionGraphListener listener) { graphListeners.remove(listener); }