interface TaskCollection<T : Task> : NamedDomainObjectSet<T>
A TaskCollection
contains a set of Task instances, and provides a number of query methods.
- The type of tasks which this collection contains.
abstract fun getAt(name: String): T
{@inheritDoc} |
|
abstract fun getByName(name: String, configureClosure: Closure<Any>): T abstract fun getByName(name: String): T
{@inheritDoc} |
|
abstract fun matching(spec: Spec<in T>): TaskCollection<T> abstract fun matching(closure: Closure<Any>): TaskCollection<T>
{@inheritDoc} |
|
abstract fun named(name: String): TaskProvider<T>
Locates a task by name, without triggering its creation or configuration, failing if there is no such object. |
|
abstract fun whenTaskAdded(action: Action<in T>): Action<in T>
Adds an abstract fun whenTaskAdded(closure: Closure<Any>): Unit
Adds a closure to be called when a task is added to this collection. The task is passed to the closure as the parameter. |
|
abstract fun <S : T> withType(type: Class<S>): TaskCollection<S>
{@inheritDoc} |
abstract fun findAll(spec: Closure<Any>): MutableSet<T>
{@inheritDoc} |
interface TaskContainer : TaskCollection<Task>, PolymorphicDomainObjectContainer<Task>
A You can obtain a |