Interface FileSystemLocationProperty<T extends FileSystemLocation>
- Type Parameters:
T- The type of location.
- All Superinterfaces:
HasConfigurableValue, Property<T>, Provider<T>
- All Known Subinterfaces:
DirectoryProperty, RegularFileProperty
@Incubating
public interface FileSystemLocationProperty<T extends FileSystemLocation>
extends Property<T>
Represents some element of the file system. A file system element has two parts: its location and its content. A file system element, or more accurately, its content, may be the output of a task
or tasks. This property object keeps track of both the location and the task or tasks that produce the content of the element.
Note: This interface is not intended for implementation by build script or plugin authors.
- Since:
- 5.6
-
Method Summary
Methods inherited from interface HasConfigurableValue
disallowChangesMethods inherited from interface Property
convention, convention, finalizeValue, set, set, value, value
-
Method Details
-
getAsFile
-
set
-
getLocationOnly
Returns the location of the file system element, and discards details of the task that produces its content. This allows the location, or a value derived from it, to be used as an input to some other task without implying any dependency on the producing task. This should only be used when the task does, in fact, not use the content of this file system element.
-