api / org.gradle.api.file / ProjectLayout / fileProperty

fileProperty

abstract fun fileProperty(): RegularFileProperty

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

Since
4.3

abstract fun fileProperty(initialProvider: Provider<out RegularFile>): RegularFileProperty

Creates a new RegularFileProperty 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