Package org.gradle.tooling.model
Schnittstelle GradleProject
- Alle Superschnittstellen:
BuildableElement,Element,HierarchicalElement,Model,ProjectModel
Represents a Gradle project.
- Seit:
- 1.0-milestone-5
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindByPath(String path) Searches all descendants (children, grand-children, etc.), including self, by given path.Returns the build directory for this project.Returns the build script for this project.DomainObjectSet<? extends GradleProject> Returns the child elements, or the empty set if there are no child elements.Returns the parent of this element, ornullif there is no parent.getPath()Returns the path of this project.Returns the project directory for this project.Returns the identifier for this Gradle project.DomainObjectSet<? extends GradleTask> getTasks()Returns the tasks of this project.Von Schnittstelle geerbte Methoden org.gradle.tooling.model.Element
getDescription, getName
-
Methodendetails
-
getProjectIdentifier
ProjectIdentifier getProjectIdentifier()Returns the identifier for this Gradle project.- Angegeben von:
getProjectIdentifierin SchnittstelleProjectModel- Seit:
- 2.13
-
getTasks
DomainObjectSet<? extends GradleTask> getTasks()Returns the tasks of this project.- Angegeben von:
getTasksin SchnittstelleBuildableElement- Gibt zurück:
- The tasks of this project.
-
getParent
GradleProject getParent()Returns the parent of this element, ornullif there is no parent.- Angegeben von:
getParentin SchnittstelleHierarchicalElement- Gibt zurück:
- The parent of this element, or
nullif there is no parent.
-
getChildren
DomainObjectSet<? extends GradleProject> getChildren()Returns the child elements, or the empty set if there are no child elements.- Angegeben von:
getChildrenin SchnittstelleHierarchicalElement- Gibt zurück:
- The child elements, or the empty set if there are no child elements.
-
getPath
String getPath()Returns the path of this project. This is a unique identifier for this project within the build.- Gibt zurück:
- The path.
-
findByPath
Searches all descendants (children, grand-children, etc.), including self, by given path.- Gibt zurück:
- Gradle project with matching path or
nullif not found.
-
getBuildScript
Returns the build script for this project.- Gibt zurück:
- The build script.
- Löst aus:
UnsupportedMethodException- For Gradle versions older than 1.8, where this method is not supported.- Seit:
- 1.8
-
getBuildDirectory
Returns the build directory for this project.- Gibt zurück:
- The build directory.
- Löst aus:
UnsupportedMethodException- For Gradle versions older than 2.0, where this method is not supported.- Seit:
- 2.0
-
getProjectDirectory
Returns the project directory for this project.- Gibt zurück:
- The project directory.
- Löst aus:
UnsupportedMethodException- For Gradle versions older than 2.4, where this method is not supported.- Seit:
- 2.4
-