BuildableElement, Element, HierarchicalElement, Model, ProjectModelpublic interface GradleProject extends HierarchicalElement, BuildableElement, ProjectModel
| Modifier and Type | Method | Description |
|---|---|---|
GradleProject |
findByPath(java.lang.String path) |
Searches all descendants (children, grand-children, etc.), including self, by given path.
|
java.io.File |
getBuildDirectory() |
Returns the build directory for this project.
|
GradleScript |
getBuildScript() |
Returns the build script for this project.
|
DomainObjectSet<? extends GradleProject> |
getChildren() |
Returns the child elements, or the empty set if there are no child elements.
|
GradleProject |
getParent() |
Returns the parent of this element, or
null if there is no parent. |
java.lang.String |
getPath() |
Returns the path of this project.
|
java.io.File |
getProjectDirectory() |
Returns the project directory for this project.
|
ProjectIdentifier |
getProjectIdentifier() |
Returns the identifier for this Gradle project.
|
DomainObjectSet<? extends GradleTask> |
getTasks() |
Returns the tasks of this project.
|
getDescription, getNameProjectIdentifier getProjectIdentifier()
getProjectIdentifier in interface ProjectModelDomainObjectSet<? extends GradleTask> getTasks()
getTasks in interface BuildableElementGradleProject getParent()
null if there is no parent.getParent in interface HierarchicalElementnull if there is no parent.DomainObjectSet<? extends GradleProject> getChildren()
getChildren in interface HierarchicalElementjava.lang.String getPath()
@Nullable GradleProject findByPath(java.lang.String path)
null if not found.GradleScript getBuildScript() throws UnsupportedMethodException
UnsupportedMethodException - For Gradle versions older than 1.8, where this method is not supported.java.io.File getBuildDirectory()
throws UnsupportedMethodException
UnsupportedMethodException - For Gradle versions older than 2.0, where this method is not supported.java.io.File getProjectDirectory()
throws UnsupportedMethodException
UnsupportedMethodException - For Gradle versions older than 2.4, where this method is not supported.