Interface ConfigurableFileTree
- All Superinterfaces:
AntBuilderAware, Buildable, DirectoryTree, FileCollection, FileTree, Iterable<File>, PatternFilterable
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).
-
Nested Class Summary
Nested classes/interfaces inherited from interface FileCollection
FileCollection.AntType -
Method Summary
Modifier and TypeMethodDescriptionRegisters some tasks which build the files of this collection.Specifies base directory for this file tree using the given path.Returns the set of tasks which build the files of this collection.getDir()Returns the base directory of this file tree.setBuiltBy(Iterable<?> tasks) Sets the tasks which build the files of this collection.Specifies base directory for this file tree using the given path.Methods inherited from interface Buildable
getBuildDependenciesMethods inherited from interface DirectoryTree
getPatternsMethods inherited from interface FileCollection
add, addToAntBuilder, addToAntBuilder, asType, contains, filter, filter, getAsPath, getSingleFile, isEmpty, minus, plus, stopExecutionIfEmptyMethods inherited from interface FileTree
getAsFileTree, getFiles, matching, matching, matching, plus, visit, visit, visitMethods inherited from interface Iterable
forEach, iterator, spliteratorMethods inherited from interface PatternFilterable
exclude, exclude, exclude, exclude, getExcludes, getIncludes, include, include, include, include, setExcludes, setIncludes
-
Method Details
-
from
Specifies base directory for this file tree using the given path. The path is evaluated as perProject.file(Object).- Parameters:
dir- The base directory.- Returns:
- this
-
getDir
File getDir()Returns the base directory of this file tree.- Specified by:
getDirin interfaceDirectoryTree- Returns:
- The base directory. Never returns null.
-
setDir
Specifies base directory for this file tree using the given path. The path is evaluated as perProject.file(Object).- Parameters:
dir- The base directory.- Returns:
- this
-
getBuiltBy
-
setBuiltBy
Sets the tasks which build the files of this collection.- Parameters:
tasks- The tasks. These are evaluated as perTask.dependsOn(Object...).- Returns:
- this
-
builtBy
Registers some tasks which build the files of this collection.- Parameters:
tasks- The tasks. These are evaluated as perTask.dependsOn(Object...).- Returns:
- this
-