RegularFileProperty (Gradle API 8.14) (original) (raw)

All Superinterfaces:

[FileSystemLocationProperty](FileSystemLocationProperty.html "interface in org.gradle.api.file")<[RegularFile](RegularFile.html "interface in org.gradle.api.file")>, [HasConfigurableValue](../provider/HasConfigurableValue.html "interface in org.gradle.api.provider"), [Property](../provider/Property.html "interface in org.gradle.api.provider")<[RegularFile](RegularFile.html "interface in org.gradle.api.file")>, [Provider](../provider/Provider.html "interface in org.gradle.api.provider")<[RegularFile](RegularFile.html "interface in org.gradle.api.file")>, [SupportsConvention](../provider/SupportsConvention.html "interface in org.gradle.api.provider")


Represents some configurable regular file location, whose value is mutable.

You can create a RegularFileProperty using ObjectFactory.fileProperty().

Note: This interface is not intended for implementation by build script or plugin authors.

Since:

4.3

Specifies the value to use as the convention (default value) for this property.
Specifies the provider to be used to query the convention (default value) for this property.
Sets the location of this file, using a File Provider instance.
Sets the location of this file, using a File instance.
Sets the value of the property to the given value, replacing whatever value the property already had.
Sets the property to have the same value as the given provider, replacing whatever value the property already had.

Methods inherited from interface org.gradle.api.provider.Provider

[filter](../provider/Provider.html#filter%28org.gradle.api.specs.Spec%29), [flatMap](../provider/Provider.html#flatMap%28org.gradle.api.Transformer%29), [forUseAtConfigurationTime](../provider/Provider.html#forUseAtConfigurationTime%28%29), [get](../provider/Provider.html#get%28%29), [getOrElse](../provider/Provider.html#getOrElse%28T%29), [getOrNull](../provider/Provider.html#getOrNull%28%29), [isPresent](../provider/Provider.html#isPresent%28%29), [map](../provider/Provider.html#map%28org.gradle.api.Transformer%29), [orElse](../provider/Provider.html#orElse%28org.gradle.api.provider.Provider%29), [orElse](../provider/Provider.html#orElse%28T%29), [zip](../provider/Provider.html#zip%28org.gradle.api.provider.Provider,java.util.function.BiFunction%29)