Package org.gradle.tooling.model.gradle
Schnittstelle BasicGradleProject
- Alle Superschnittstellen:
Model,ProjectModel
Provides some basic details about a Gradle project.
- Seit:
- 1.8
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns a path to the project for the full build treeDomainObjectSet<? extends BasicGradleProject> Returns the child projects of this project, or the empty set if there are no child projects.getName()Returns the name of this project.Returns the parent of this project, ornullif this is the root project.getPath()Returns the path of this project.Returns the project directory for this project.Returns the identifier for this Gradle project.
-
Methodendetails
-
getProjectIdentifier
ProjectIdentifier getProjectIdentifier()Returns the identifier for this Gradle project.- Angegeben von:
getProjectIdentifierin SchnittstelleProjectModel- Seit:
- 2.13
-
getName
String getName()Returns the name of this project. Note that the name is not a unique identifier for the project.- Gibt zurück:
- The name of this project.
-
getPath
String getPath()Returns the path of this project. The path can be used as a unique identifier for the project within a given build.- Gibt zurück:
- The path of this project.
-
getProjectDirectory
File getProjectDirectory()Returns the project directory for this project.- Gibt zurück:
- The project directory.
-
getParent
Returns the parent of this project, ornullif this is the root project.- Gibt zurück:
- The parent of this project, or
nullif this is the root project.
-
getChildren
DomainObjectSet<? extends BasicGradleProject> getChildren()Returns the child projects of this project, or the empty set if there are no child projects.- Gibt zurück:
- The child projects of this project, or the empty set if there are no child projects.
-
getBuildTreePath
Returns a path to the project for the full build tree- Gibt zurück:
- a path to the project for the full build tree
- Löst aus:
UnsupportedMethodException- When the target Gradle version does not support this method.- Seit:
- 8.2
-