DirectoryVar@Incubating public interface DirectoryProperty extends Provider<Directory>, Property<Directory>
Note: This interface is not intended for implementation by build script or plugin authors. An instance of this class can be created using the ProjectLayout.directoryProperty() method.
| Modifier and Type | Method | Description |
|---|---|---|
Provider<Directory> |
dir(java.lang.String path) |
Returns a
Directory whose value is the given path resolved relative to the value of this directory. |
Provider<Directory> |
dir(Provider<? extends java.lang.CharSequence> path) |
Returns a
Directory whose value is the given path resolved relative to the value of this directory. |
Provider<RegularFile> |
file(java.lang.String path) |
Returns a
RegularFile whose value is the given path resolved relative to the value of this directory. |
Provider<RegularFile> |
file(Provider<? extends java.lang.CharSequence> path) |
Returns a
RegularFile whose value is the given path resolved relative to the value of this directory. |
Provider<java.io.File> |
getAsFile() |
Views the location of this directory as a
File. |
FileTree |
getAsFileTree() |
Returns a
FileTree that allows the files and directories contained in this directory to be queried. |
void |
set(java.io.File dir) |
Sets the location of this directory.
|
Provider<java.io.File> getAsFile()
File.FileTree getAsFileTree()
FileTree that allows the files and directories contained in this directory to be queried.void set(java.io.File dir)
Provider<Directory> dir(java.lang.String path)
Directory whose value is the given path resolved relative to the value of this directory.path - The path. Can be absolute.Provider<Directory> dir(Provider<? extends java.lang.CharSequence> path)
Directory whose value is the given path resolved relative to the value of this directory.path - The path. Can have a value that is an absolute path.Provider<RegularFile> file(java.lang.String path)
RegularFile whose value is the given path resolved relative to the value of this directory.path - The path. Can be absolute.Provider<RegularFile> file(Provider<? extends java.lang.CharSequence> path)
RegularFile whose value is the given path resolved relative to the value of this directory.path - The path. Can have a value that is an absolute path.