public interface GradleProject extends HierarchicalElement, BuildableElement
Modifier and Type | Method and Description |
---|---|
GradleProject |
findByPath(String path)
Searches all descendants (children, grand-children, etc.), including self, by given path.
|
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. |
String |
getPath()
Returns the path of this project.
|
DomainObjectSet<? extends GradleTask> |
getTasks()
Returns the tasks of this project.
|
getDescription, getName
DomainObjectSet<? extends GradleTask> getTasks()
getTasks
in interface BuildableElement
GradleProject getParent()
null
if there is no parent.getParent
in interface HierarchicalElement
null
if there is no parent.DomainObjectSet<? extends GradleProject> getChildren()
getChildren
in interface HierarchicalElement
String getPath()
@Nullable GradleProject findByPath(String path)
null
if not found.@Incubating GradleScript getBuildScript()
@Incubating File getBuildDirectory()