ProjectDescriptor

A ProjectDescriptor declares the configuration required to create and evaluate a .

A ProjectDescriptor is created when you add a project to the build from the settings script, using include. You can access the descriptors using one of the lookup methods on the Settings object.

Functions

Link copied to clipboard
abstract fun getBuildFile(): File
Returns the build file for this project.
Link copied to clipboard
abstract fun getBuildFileName(): String
Returns the name of the build file for this project.
Link copied to clipboard
Returns the children of this project, if any.
Link copied to clipboard
abstract fun getName(): String
Returns the name of this project.
Link copied to clipboard
@Nullable
abstract fun getParent(): ProjectDescriptor
Returns the parent of this project, if any.
Link copied to clipboard
abstract fun getPath(): String
Returns the path of this project.
Link copied to clipboard
abstract fun getProjectDir(): File
Returns the project directory of this project.
Link copied to clipboard
abstract fun setBuildFileName(name: String)
Sets the name of the build file.
Link copied to clipboard
abstract fun setName(name: String)
Sets the name of this project.
Link copied to clipboard
abstract fun setProjectDir(dir: File)
Sets the project directory of this project.