|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.NamedDomainObjectSet org.gradle.api.tasks.TaskCollection org.gradle.api.NamedDomainObjectCollection java.lang.Iterable org.gradle.api.DomainObjectCollection java.util.Collection
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 | |
---|---|
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, getNames, getRules, matching, matching, withType |
Methods inherited from interface Set | |
---|---|
add, equals, hashCode, clear, contains, isEmpty, size, toArray, toArray, addAll, iterator, remove, containsAll, removeAll, retainAll |
Method Detail |
---|
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)
@SuppressWarnings("UnusedDeclaration") public Action whenTaskAdded(Action action)
action
- The action to be executed
@SuppressWarnings("UnusedDeclaration") public void whenTaskAdded(Closure closure)
closure
- The closure to be called
public TaskCollection withType(Class type)
Gradle API 1.12