Package org.gradle.api.tasks
Interface TaskProvider<T extends Task>
- Type Parameters:
T- Task type
- All Superinterfaces:
NamedDomainObjectProvider<T>,Provider<T>
Providers a task of the given type.
- Since:
- 4.8
-
Method Summary
-
Method Details
-
configure
Configures the task with the given action. Actions are run in the order added.- Specified by:
configurein interfaceNamedDomainObjectProvider<T extends Task>- Parameters:
action- AActionthat can configure the task when required.- Since:
- 4.8
-
getName
String getName()The task name referenced by this provider.Must be constant for the life of the object.
- Specified by:
getNamein interfaceNamedDomainObjectProvider<T extends Task>- Returns:
- The task name. Never null.
- Since:
- 4.9
-