|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.DomainObjectCollection org.gradle.api.NamedDomainObjectCollection org.gradle.api.tasks.TaskCollection
public interface TaskCollection extends NamedDomainObjectCollection
A TaskCollection contains a set of Task instances, and provides a number of query methods.
- The type of tasks which this collection contains.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(groovy.lang.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)
{@inheritDoc} |
T
|
getByName(java.lang.String name, groovy.lang.Closure configureClosure)
{@inheritDoc} |
T
|
getByName(java.lang.String name)
{@inheritDoc} |
TaskCollection
|
matching(Spec spec)
{@inheritDoc} |
TaskCollection
|
matching(groovy.lang.Closure closure)
{@inheritDoc} |
Action
|
whenTaskAdded(Action action)
Adds an Action to be executed when a task is added to this collection. |
void
|
whenTaskAdded(groovy.lang.Closure closure)
Adds a closure to be called when a task is added to this collection. |
TaskCollection
|
withType(java.lang.Class type)
{@inheritDoc} |
Methods inherited from interface NamedDomainObjectCollection | |
---|---|
findByName, getAsMap, getAt, getByName, getByName, matching, matching, withType |
Methods inherited from interface DomainObjectCollection | |
---|---|
all, all, allObjects, allObjects, findAll, getAll, matching, matching, whenObjectAdded, whenObjectAdded, whenObjectRemoved, withType, withType, withType |
Methods inherited from interface java.lang.Iterable | |
---|---|
java.lang.Iterable#iterator() |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
@Deprecated public void allTasks(Action action)
action
- The action to be executed
@Deprecated public void allTasks(groovy.lang.Closure closure)
closure
- The closure to be called
public T getAt(java.lang.String name)
public T getByName(java.lang.String name, groovy.lang.Closure configureClosure)
public T getByName(java.lang.String name)
public TaskCollection matching(Spec spec)
public TaskCollection matching(groovy.lang.Closure closure)
public Action whenTaskAdded(Action action)
action
- The action to be executed
public void whenTaskAdded(groovy.lang.Closure closure)
closure
- The closure to be called
public TaskCollection withType(java.lang.Class type)
Groovy Documentation