|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gradle.execution.DefaultTaskExecuter
public class DefaultTaskExecuter
| Constructor Summary | |
|---|---|
DefaultTaskExecuter()
|
|
| Method Summary | |
|---|---|
void |
addTaskExecutionGraphListener(TaskExecutionGraphListener listener)
Adds a listener to this graph, to be notified when this graph is ready. |
void |
addTaskExecutionListener(TaskExecutionListener listener)
Adds a listener to this graph, to be notified as tasks are executed. |
void |
addTasks(java.lang.Iterable<? extends Task> tasks)
Adds the given tasks and their dependencies to this graph. |
void |
afterTask(groovy.lang.Closure closure)
Adds a closure to be called immediately after a task has executed. |
void |
beforeTask(groovy.lang.Closure closure)
Adds a closure to be called immediately before a task is executed. |
void |
execute()
Executes the tasks in this graph. |
void |
execute(java.lang.Iterable<? extends Task> tasks)
Adds the given tasks and their dependencies to this graph, then executes all the tasks in this graph. |
java.util.List<Task> |
getAllTasks()
Returns the tasks which are included in the execution plan. |
boolean |
hasTask(java.lang.String path)
Determines whether the given task is included in the execution plan. |
boolean |
hasTask(Task task)
Determines whether the given task is included in the execution plan. |
void |
removeTaskExecutionGraphListener(TaskExecutionGraphListener listener)
Remove a listener from this graph. |
void |
removeTaskExecutionListener(TaskExecutionListener listener)
Remove a listener from this graph. |
void |
whenReady(groovy.lang.Closure closure)
Adds a closure to be called when this graph has been populated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTaskExecuter()
| Method Detail |
|---|
public void addTasks(java.lang.Iterable<? extends Task> tasks)
TaskExecuter
addTasks in interface TaskExecuterpublic void execute()
TaskExecuter
execute in interface TaskExecuterpublic void execute(java.lang.Iterable<? extends Task> tasks)
TaskExecuter
execute in interface TaskExecuterpublic void addTaskExecutionGraphListener(TaskExecutionGraphListener listener)
TaskExecutionGraphAdds a listener to this graph, to be notified when this graph is ready.
addTaskExecutionGraphListener in interface TaskExecutionGraphlistener - The listener to add. Does nothing if this listener has already been added.public void removeTaskExecutionGraphListener(TaskExecutionGraphListener listener)
TaskExecutionGraphRemove a listener from this graph.
removeTaskExecutionGraphListener in interface TaskExecutionGraphlistener - The listener to remove. Does nothing if this listener was never added to this graph.public void whenReady(groovy.lang.Closure closure)
TaskExecutionGraphAdds a closure to be called when this graph has been populated. This graph is passed to the closure as a parameter.
whenReady in interface TaskExecutionGraphclosure - The closure to execute when this graph has been populated.public void addTaskExecutionListener(TaskExecutionListener listener)
TaskExecutionGraphAdds a listener to this graph, to be notified as tasks are executed.
addTaskExecutionListener in interface TaskExecutionGraphlistener - The listener to add. Does nothing if this listener has already been added.public void removeTaskExecutionListener(TaskExecutionListener listener)
TaskExecutionGraphRemove a listener from this graph.
removeTaskExecutionListener in interface TaskExecutionGraphlistener - The listener to remove. Does nothing if this listener was never added to this graph.public void beforeTask(groovy.lang.Closure closure)
TaskExecutionGraphAdds a closure to be called immediately before a task is executed. The task is passed to the closure as a parameter.
beforeTask in interface TaskExecutionGraphclosure - The closure to execute when a task is about to be executed.public void afterTask(groovy.lang.Closure closure)
TaskExecutionGraphAdds a closure to be called immediately after a task has executed. The task is passed to the closure as the first parameter. The task execution exception, if any, is passed as the second parameter. Both parameters are optional.
afterTask in interface TaskExecutionGraphclosure - The closure to execute when a task has been executedpublic boolean hasTask(Task task)
TaskExecutionGraphDetermines whether the given task is included in the execution plan.
hasTask in interface TaskExecutionGraphtask - the task
public boolean hasTask(java.lang.String path)
TaskExecutionGraphDetermines whether the given task is included in the execution plan.
hasTask in interface TaskExecutionGraphpath - the absolute path of the task.
public java.util.List<Task> getAllTasks()
TaskExecutionGraphReturns the tasks which are included in the execution plan. The tasks are returned in the order that they will be executed.
getAllTasks in interface TaskExecutionGraph
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||