Task Collection
A TaskCollection
contains a set of Task instances, and provides a number of query methods.
Parameters
The type of tasks which this collection contains.
Inheritors
Functions
Locates an object by name and casts it to the expected type T.
Locates an object by name and casts it to the expected type T then configures it.
Locates an object by name and casts it to the expected type.
Locates an object by name and casts it to the expected type then configures it.
Locates an object by name and type, without triggering its creation or configuration, failing if there is no such object.
Locates a task by name and type, without triggering its creation or configuration, failing if there is no such task.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectCollection.named.
Configures an object by name and type, without triggering its creation or configuration, failing if there is no such object.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.tasks.TaskCollection.named.
Configures a task by name and type, without triggering its creation or configuration, failing if there is no such task.
Allows a NamedDomainObjectCollection to be used as a property delegate.
Action
to be executed when a task is added to this collection.Returns a collection containing the objects in this collection of the given type. The returned collection is live, so that when matching objects are later added to this collection, they are also visible in the filtered collection.
Returns a collection containing the objects in this collection of the given type. Equivalent to calling withType(type).all(configureAction)
.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.DomainObjectCollection.withType.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.DomainObjectSet.withType.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectCollection.withType.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.NamedDomainObjectSet.withType.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.tasks.TaskCollection.withType.