Handle for a org.gradle.api.Task that may not yet been created.
For tasks created using ModelMap
Constructor and description |
---|
AndroidTask
(String name, Class<T> taskType) |
Type | Name and description |
---|---|
void |
configure(TaskFactory taskFactory, org.gradle.api.Action<? super org.gradle.api.Task> configAction) Add a configration action for this task. |
void |
dependsOn(TaskFactory taskFactory, AndroidTask<?> other) Add dependency on another AndroidTask. |
void |
dependsOn(TaskFactory taskFactory, Object... dependencies) Add dependency on objects. |
List<AndroidTask<? extends org.gradle.api.Task>> |
getDownstreamTasks() Return all the AndroidTask that depends on this. |
String |
getName() The name of Task this represents. |
Class<T> |
getTaskType() The type of Task this represents. |
List<AndroidTask<? extends org.gradle.api.Task>> |
getUpstreamTasks() Return all the AndroidTask this depends on. |
void |
optionalDependsOn(TaskFactory taskFactory, Object... dependencies) Add dependency on other objects if the object is not null. |
void |
optionalDependsOn(TaskFactory taskFactory, List<?> dependencies) |
Add a configration action for this task.
taskFactory
- TaskFactory used to configure the task.configAction
- An Action to be executed.Add dependency on another AndroidTask.
taskFactory
- TaskFactory used to configure the task for dependencies.other
- The task that this depends on.Add dependency on objects. This method adds dependencies on any objects accepted by org.gradle.api.Task#dependsOn and is needed for compatibility until all tasks are trasitioned to AndroidTask.
taskFactory
- TaskFactory used to configure the task for dependencies.dependencies
- Objects accepted by org.gradle.api.Task#dependsOn.Return all the AndroidTask that depends on this.
The name of Task this represents.
The type of Task this represents.
Return all the AndroidTask this depends on.
Add dependency on other objects if the object is not null. This method adds dependencies on any objects accepted by org.gradle.api.Task#dependsOn and is needed for compatibility until all tasks are trasitioned to AndroidTask.
taskFactory
- TaskFactory used to configure the task for dependencies.dependencies
- Objects accepted by org.gradle.api.Task#dependsOn.