@Incubating public interface DirectoryProperty extends Property<Directory>
You can create a DirectoryProperty
using ObjectFactory.directoryProperty()
.
Note: This interface is not intended for implementation by build script or plugin authors.
Modifier and Type | Method | Description |
---|---|---|
DirectoryProperty |
convention(Directory value) |
Specifies the value to use as the convention for this property.
|
DirectoryProperty |
convention(Provider<? extends Directory> valueProvider) |
Specifies the provider of the value to use as the convention for this property.
|
Provider<Directory> |
dir(String path) |
Returns a
Directory whose value is the given path resolved relative to the value of this directory. |
Provider<Directory> |
dir(Provider<? extends CharSequence> path) |
Returns a
Directory whose value is the given path resolved relative to the value of this directory. |
Provider<RegularFile> |
file(String path) |
Returns a
RegularFile whose value is the given path resolved relative to the value of this directory. |
Provider<RegularFile> |
file(Provider<? extends CharSequence> path) |
Returns a
RegularFile whose value is the given path resolved relative to the value of this directory. |
Provider<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(File dir) |
Sets the location of this directory.
|
DirectoryProperty |
value(Directory value) |
Sets the value of the property the given value, replacing whatever value the property already had.
|
finalizeValue, set, set
FileTree getAsFileTree()
FileTree
that allows the files and directories contained in this directory to be queried.DirectoryProperty value(Directory value)
This is the same as Property.set(Object)
but returns this property to allow method chaining.
DirectoryProperty convention(Directory value)
convention
in interface Property<Directory>
value
- The value.DirectoryProperty convention(Provider<? extends Directory> valueProvider)
convention
in interface Property<Directory>
valueProvider
- The provider of the value.Provider<Directory> dir(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 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(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 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.