Package org.gradle.api.tasks
Schnittstelle TaskProvider<T extends Task>
- Typparameter:
T- Task type
- Alle Superschnittstellen:
NamedDomainObjectProvider<T>,Provider<T>
Providers a task of the given type.
- Seit:
- 4.8
-
Methodenübersicht
-
Methodendetails
-
configure
Configures the task with the given action. Actions are run in the order added.- Angegeben von:
configurein SchnittstelleNamedDomainObjectProvider<T extends Task>- Parameter:
action- AActionthat can configure the task when required.- Seit:
- 4.8
-
getName
String getName()The task name referenced by this provider.Must be constant for the life of the object.
- Angegeben von:
getNamein SchnittstelleNamedDomainObjectProvider<T extends Task>- Gibt zurück:
- The task name. Never null.
- Seit:
- 4.9
-