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- 
configureConfigures the task with the given action. Actions are run in the order added.- Specified by:
- configurein interface- NamedDomainObjectProvider<T extends Task>
- Parameters:
- action- A- Actionthat can configure the task when required.
- Since:
- 4.8
 
- 
getNameString getName()The task name referenced by this provider.Must be constant for the life of the object. - Specified by:
- getNamein interface- NamedDomainObjectProvider<T extends Task>
- Returns:
- The task name. Never null.
- Since:
- 4.9
 
 
-