Package org.gradle.api.tasks
Interface TaskProvider<T extends Task>
-
- Type Parameters:
T
- Task type
- All Superinterfaces:
NamedDomainObjectProvider<T>
,Provider<T>
public interface TaskProvider<T extends Task> extends NamedDomainObjectProvider<T>
Providers a task of the given type.- Since:
- 4.8
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configure(Action<? super T> action)
Configures the task with the given action.java.lang.String
getName()
The task name referenced by this provider.
-
-
-
Method Detail
-
configure
void configure(Action<? super T> action)
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
java.lang.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
-
-