public interface Task extends Launchable
Note: Task extends Launchable since 1.12.
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the description of this task, or
null if it has no description. |
String |
getGroup()
Returns the group a task belongs to.
|
String |
getName()
Returns the name of this task.
|
String |
getPath()
Returns the path of this task.
|
Element |
getProject()
Deprecated.
Do not use this method. It is assumed that the caller already has a reference to owning project.
|
getDisplayName, getProjectIdentifier, isPublicString getPath()
String getName()
@Nullable String getDescription()
null if it has no description.getDescription in interface Launchablenull if it has no description.@Deprecated Element getProject()
UnsupportedMethodException - From 1.12 for implementations that do not also implement GradleTask.@Incubating @Nullable String getGroup()