Package org.gradle.api.project
Interface IsolatedProject
-
@Incubating public interface IsolatedProject
An isolated view ofProjectthat exposes only those properties that are safe to access from outside ofthisproject, from the perspective of isolated projects.- Since:
- 8.8
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetBuildTreePath()Returns a path to the project for the full build tree.java.lang.StringgetName()Returns the name of this project.java.lang.StringgetPath()Returns the path of this project.DirectorygetProjectDirectory()The directory containing the project build file.IsolatedProjectgetRootProject()Returns the root project for the hierarchy that this project belongs to.inthashCode()
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of this project. The project's name is not necessarily unique within a project hierarchy. You should use the
getPath()method for a unique identifier for the project. If the root project is unnamed and is located on a file system root it will have a randomly-generated name- Returns:
- The name of this project. Never return null.
- Since:
- 8.8
-
getPath
java.lang.String getPath()
Returns the path of this project. The path is the fully qualified name of the project.
- Returns:
- The path. Never returns null.
- Since:
- 8.8
-
getBuildTreePath
@Incubating java.lang.String getBuildTreePath()
Returns a path to the project for the full build tree.- Returns:
- The build tree path
- Since:
- 8.9
-
getProjectDirectory
Directory getProjectDirectory()
The directory containing the project build file.
- Returns:
- The project directory. Never returns null.
- Since:
- 8.8
-
getRootProject
IsolatedProject getRootProject()
Returns the root project for the hierarchy that this project belongs to. In the case of a single-project build, this method returns this project.
- Returns:
- The root project. Never returns null.
- Since:
- 8.8
-
hashCode
int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-