RegularFileProperty (Gradle API 5.0)
Date: 2018-11-26

Package org.gradle.api.file

## Interface RegularFileProperty

- All Superinterfaces:
    `Property<RegularFile>`, `Provider<RegularFile>`

      @Incubating
      public interface RegularFileProperty
      extends Property<RegularFile>

  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

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Provider<java.io.File>` | `getAsFile​()` | Views the location of this file as a `File`.
    `void` | `set​(java.io.File file)` | Sets the location of this file.
    `RegularFileProperty` | `value​(RegularFile value)` | Sets the value of the property the given value, replacing whatever value the property already had.

    - ### Methods inherited from interface org.gradle.api.provider.Property

      `finalizeValue, set, set`

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

      `flatMap, get, getOrElse, getOrNull, isPresent, map`

- - ### Method Detail

    - #### getAsFile

          Provider<java.io.File> getAsFile​()

      Views the location of this file as a `File`.

    - #### set

          void set​(java.io.File file)

      Sets the location of this file.

    - #### value

          RegularFileProperty value​(RegularFile value)

      Sets the value of the property the given value, replacing whatever value the property already had.

      This is the same as `Property.set(Object)` but returns this property to allow method chaining.

      Specified by:
        `value` in interface `Property<RegularFile>`
      Parameters:
        `value` - The value, can be null.
      Returns:
        this