protected static interface TaskFactory.Dispatcher
org.gradle.api.tasks.TaskContainer#register API if available.| Modifier and Type | Interface and Description |
|---|---|
static class |
TaskFactory.Dispatcher.ForApi49CapableGradle
A dispatcher for a Gradle version that supports the task registration API.
|
static class |
TaskFactory.Dispatcher.ForLegacyGradle
A dispatcher for a legacy version of Gradle that does not support the task registration API.
|
| Modifier and Type | Method and Description |
|---|---|
Task |
create(TaskContainer tasks,
String name,
Class<? extends Task> type)
Creates a task of the supplied type within the supplied task container.
|
Task create(TaskContainer tasks, String name, Class<? extends Task> type)
tasks - The task container to use.name - The name of the task to create.type - The type of the task to create.