public final class GradleTask extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
String |
getGroup() |
String |
getName() |
String |
getPath() |
String |
getProjectPath()
Returns path of the task's declaring project.
|
boolean |
isExternal()
Determines if the task is external, from another project.
|
boolean |
isPrivate()
Tasks without groups are considered private in Gradle.
|
boolean |
matches(String abbrev)
Returns true if the given CamelCase abbreviation matches this task name.
|
public String getPath()
public String getGroup()
public String getName()
public boolean isExternal()
GradleBaseProject.getTasks()
,
but may represent project task's dependency.
To get the task's details, lookup its project (identified by GradleTask.getProjectPath()
, and
use GradleBaseProject.getTaskByName(java.lang.String)
to get the external task's declaration
info.
public String getProjectPath()
public String getDescription()
public boolean isPrivate()
public boolean matches(String abbrev)
abbrev
- the camel case abbreviation