AntBuilderAware
, Buildable
, DirectoryTree
, FileCollection
, FileTree
, Iterable<File>
, PatternFilterable
public interface ConfigurableFileTree extends FileTree, DirectoryTree, PatternFilterable, Buildable
A FileTree
with a single base directory, which can be configured and modified.
You can obtain a ConfigurableFileTree
instance by calling Project.fileTree(java.util.Map)
.
FileCollection.AntType
Modifier and Type | Method | Description |
---|---|---|
ConfigurableFileTree |
builtBy(Object... tasks) |
Registers some tasks which build the files of this collection.
|
ConfigurableFileTree |
from(Object dir) |
Specifies base directory for this file tree using the given path.
|
Set<Object> |
getBuiltBy() |
Returns the set of tasks which build the files of this collection.
|
File |
getDir() |
Returns the base directory of this file tree.
|
ConfigurableFileTree |
setBuiltBy(Iterable<?> tasks) |
Sets the tasks which build the files of this collection.
|
ConfigurableFileTree |
setDir(Object dir) |
Specifies base directory for this file tree using the given path.
|
getBuildDependencies
getPatterns
addToAntBuilder, addToAntBuilder, contains, filter, filter, getAsPath, getSingleFile, isEmpty, minus, plus
getAsFileTree, getFiles, matching, matching, matching, plus, visit, visit, visit
forEach, iterator, spliterator
exclude, exclude, exclude, exclude, getExcludes, getIncludes, include, include, include, include, setExcludes, setIncludes
ConfigurableFileTree from(Object dir)
Project.file(Object)
.dir
- The base directory.File getDir()
getDir
in interface DirectoryTree
ConfigurableFileTree setDir(Object dir)
Project.file(Object)
.dir
- The base directory.Set<Object> getBuiltBy()
ConfigurableFileTree setBuiltBy(Iterable<?> tasks)
tasks
- The tasks. These are evaluated as per Task.dependsOn(Object...)
.ConfigurableFileTree builtBy(Object... tasks)
tasks
- The tasks. These are evaluated as per Task.dependsOn(Object...)
.