|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.NamedDomainObjectSetorg.gradle.api.NamedDomainObjectCollection
java.lang.Iterable
org.gradle.api.DomainObjectCollection
java.util.Collection
org.gradle.api.tasks.TaskCollection
public interface TaskCollection extends NamedDomainObjectSet
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(Closure closure)
Executes the given closure against all tasks in this collection, and any tasks subsequently added to this collection. |
Object
|
getAt(String name)
{@inheritDoc} |
Object
|
getByName(String name, Closure configureClosure)
{@inheritDoc} |
Object
|
getByName(String name)
{@inheritDoc} |
TaskCollection
|
matching(Spec spec)
{@inheritDoc} |
TaskCollection
|
matching(Closure closure)
{@inheritDoc} |
Action
|
whenTaskAdded(Action action)
Adds an Action to be executed when a task is added to this collection. |
void
|
whenTaskAdded(Closure closure)
Adds a closure to be called when a task is added to this collection. |
TaskCollection
|
withType(Class type)
{@inheritDoc} |
Methods inherited from interface NamedDomainObjectSet | |
---|---|
findAll, matching, matching, withType |
Methods inherited from interface NamedDomainObjectCollection | |
---|---|
add, addAll, addRule, addRule, findByName, getAsMap, getAt, getByName, getByName, getNamer, getRules, matching, matching, withType |
Methods inherited from interface Set | |
---|---|
add, equals, hashCode, clear, size, isEmpty, contains, addAll, toArray, toArray, iterator, remove, removeAll, containsAll, retainAll |
Method Detail |
---|
@Deprecated public void allTasks(Action action)
action
- The action to be executed
@Deprecated public void allTasks(Closure closure)
closure
- The closure to be called
public Object getAt(String name)
public Object getByName(String name, Closure configureClosure)
public Object getByName(String name)
public TaskCollection matching(Spec spec)
public TaskCollection matching(Closure closure)
public Action whenTaskAdded(Action action)
action
- The action to be executed
public void whenTaskAdded(Closure closure)
closure
- The closure to be called
public TaskCollection withType(Class type)
Gradle API 1.0-milestone-8