|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.tasks.TaskCollectionorg.gradle.api.DomainObjectCollection
interface TaskCollection extends DomainObjectCollection
A TaskCollection contains a set of Task instances, and provides a number of query methods.
Method Summary | |
---|---|
void
|
allTasks(Action action)
Executes the given action against all tasks in this collection, and any tasks subsequently added to this collection. |
void
|
allTasks(Closure closure)
Executes the given closure against all tasks in this collection, and any tasks subsequently added to this collection. |
T
|
getAt(java.lang.String name)
{ |
T
|
getByName(java.lang.String name, Closure configureClosure)
{ |
T
|
getByName(java.lang.String name)
{ |
TaskCollection
|
matching(Spec spec)
{ |
Action
|
whenTaskAdded(Action action)
Adds an { |
void
|
whenTaskAdded(Closure closure)
Adds a closure to be called when a task is added to this collection. |
TaskCollection
|
withType(java.lang.Class type)
{ |
Methods inherited from interface DomainObjectCollection | |
---|---|
allObjects, allObjects, findAll, findByName, getAll, getAsMap, getAt, getByName, getByName, matching, whenObjectAdded, whenObjectAdded, whenObjectRemoved, withType |
Methods inherited from interface java.lang.Iterable | |
---|---|
iterator |
Methods inherited from class java.lang.Object | |
---|---|
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll |
Method Detail |
---|
public void allTasks(Action action)
public void allTasks(Closure closure)
public T getAt(java.lang.String name)
public T getByName(java.lang.String name, Closure configureClosure)
public T getByName(java.lang.String name)
public TaskCollection matching(Spec spec)
public Action whenTaskAdded(Action action)
public void whenTaskAdded(Closure closure)
public TaskCollection withType(java.lang.Class type)
Groovy Documentation