api / org.gradle.api.file / ProjectLayout / directoryProperty

directoryProperty

abstract fun directoryProperty(): DirectoryProperty

Creates a new DirectoryProperty that uses the project directory to resolve paths, if required. The property has no initial value.

Since
4.3

abstract fun directoryProperty(initialProvider: Provider<out Directory>): DirectoryProperty

Creates a new DirectoryProperty that uses the project directory to resolve paths, if required. The property has the initial provider specified.

Parameters

initialProvider - initial provider for the property

Since
4.4