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:
configure
in interfaceNamedDomainObjectProvider<T extends Task>
- Parameters:
action
- AAction
that 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:
getName
in interfaceNamedDomainObjectProvider<T extends Task>
- Returns:
- The task name. Never null.
- Since:
- 4.9
-