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.
|
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, getName
@Incubating ProjectIdentifier getProjectIdentifier()
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() throws UnsupportedMethodException
UnsupportedMethodException
- For Gradle versions older than 1.8, where this method is not supported.@Incubating File getBuildDirectory() throws UnsupportedMethodException
UnsupportedMethodException
- For Gradle versions older than 2.0, where this method is not supported.@Incubating File getProjectDirectory() throws UnsupportedMethodException
UnsupportedMethodException
- For Gradle versions older than 2.4, where this method is not supported.