T - The type of location.HasConfigurableValue, Property<T>, Provider<T>DirectoryProperty, RegularFilePropertypublic interface FileSystemLocationProperty<T extends FileSystemLocation> extends Property<T>
Note: This interface is not intended for implementation by build script or plugin authors.
| Modifier and Type | Method | Description |
|---|---|---|
FileSystemLocationProperty<T> |
fileProvider(Provider<java.io.File> provider) |
Sets the location of this file, using a
File Provider instance. |
FileSystemLocationProperty<T> |
fileValue(java.io.File file) |
Sets the location of this file, using a
File instance. |
Provider<java.io.File> |
getAsFile() |
Views the location of this file as a
File. |
Provider<T> |
getLocationOnly() |
Returns the location of the file system element, and discards details of the task that produces its content.
|
void |
set(java.io.File file) |
Sets the location of this file, using a
File instance. |
disallowChanges, disallowUnsafeRead, finalizeValueOnReadconvention, convention, finalizeValue, set, set, value, valueProvider<java.io.File> getAsFile()
File.void set(@Nullable
java.io.File file)
File instance. File instances with relative paths are resolved relative to the project directory of the project
that owns this property instance.FileSystemLocationProperty<T> fileValue(@Nullable java.io.File file)
File instance. File instances with relative paths are resolved relative to the project directory of the project
that owns this property instance.
This method is the same as set(File) but allows method chaining.
FileSystemLocationProperty<T> fileProvider(Provider<java.io.File> provider)
File Provider instance. File instances with relative paths are resolved relative to the project directory of the project
that owns this property instance.Provider<T> getLocationOnly()