api / org.gradle.api.initialization / Settings / findProject

findProject

abstract fun findProject(path: String): ProjectDescriptor

Returns the project with the given path.

Parameters

path - The path

Return
The project with the given path. Returns null if no such project exists.

abstract fun findProject(projectDir: File): ProjectDescriptor

Returns the project with the given project directory.

Parameters

projectDir - The project directory.

Return
The project with the given project directory. Returns null if no such project exists.