Interface for a container that can create Task.
Type | Name and description |
---|---|
boolean |
containsKey(String name) Returns true if this collection contains an item with the given name. |
void |
create(String name) Creates a task with the given name. |
void |
create(String name, org.gradle.api.Action<? super org.gradle.api.Task> configAction) Creates a task and initialize it with the given configAction. |
void |
create(String name, Class<S> type) Creates a task with the given name and type. |
void |
create(String name, Class<S> type, org.gradle.api.Action<? super S> configAction) Creates a task the given name and type, and initialize it with the given configAction. |
void |
named(String name, org.gradle.api.Action<? super org.gradle.api.Task> configAction) Applies the given configAction to the task with given name. |
org.gradle.api.Task |
named(String name) Returns the org.gradle.api.Task named name from the current set of defined tasks. |
Returns true if this collection contains an item with the given name.
Creates a task with the given name.
Creates a task and initialize it with the given configAction.
Creates a task the given name and type, and initialize it with the given configAction.
Applies the given configAction to the task with given name.
Returns the org.gradle.api.Task named name from the current set of defined tasks.
name
- the name of the requested org.gradle.api.Task