public abstract class CompositeFileTree extends CompositeFileCollection implements FileTree
FileCollection.AntType| Constructor and Description |
|---|
CompositeFileTree() |
| Modifier and Type | Method and Description |
|---|---|
FileTree |
getAsFileTree()
Converts this collection to a
FileTree. |
protected List<FileTree> |
getSourceCollections() |
FileTree |
matching(Closure filterConfigClosure)
Restricts the contents of this tree to those files matching the given filter.
|
FileTree |
matching(PatternFilterable patterns)
Restricts the contents of this tree to those files matching the given filter.
|
FileTree |
plus(FileTree fileTree)
Returns a
FileTree which contains the union of this tree and the given tree. |
FileTree |
visit(Closure visitor)
Visits the files and directories in this file tree.
|
FileTree |
visit(FileVisitor visitor)
Visits the files and directories in this file tree.
|
addAsResourceCollection, addDependencies, contains, filter, getAsFileTrees, getBuildDependencies, getFiles, isEmpty, resolveadd, addAsFileSet, addAsMatchingTask, addToAntBuilder, addToAntBuilder, asType, filter, getAsPath, getCapDisplayName, getDisplayName, getSingleFile, iterator, minus, plus, stopExecutionIfEmpty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addToAntBuilder, addToAntBuilder, asType, contains, filter, filter, getAsPath, getFiles, getSingleFile, isEmpty, minus, plus, stopExecutionIfEmptygetBuildDependenciesgetDisplayNameprotected List<FileTree> getSourceCollections()
getSourceCollections in class CompositeFileCollectionpublic FileTree plus(FileTree fileTree)
FileTreeFileTree which contains the union of this tree and the given tree. The returned tree is live,
so that changes to either this tree or the other source tree are reflected in the returned tree.public FileTree matching(Closure filterConfigClosure)
FileTreeRestricts the contents of this tree to those files matching the given filter. The filtered tree is live, so that any changes to this tree are reflected in the filtered tree.
The given closure is used to configure the filter. A PatternFilterable is
passed to the closure as it's delegate. Only files which match the specified include patterns will be included in
the filtered tree. Any files which match the specified exclude patterns will be excluded from the filtered
tree.
public FileTree matching(PatternFilterable patterns)
FileTreeRestricts the contents of this tree to those files matching the given filter. The filtered tree is live, so that any changes to this tree are reflected in the filtered tree.
The given pattern set is used to configure the filter. Only files which match the specified include patterns will be included in the filtered tree. Any files which match the specified exclude patterns will be excluded from the filtered tree.
public FileTree visit(Closure visitor)
FileTreeFileVisitDetailspublic FileTree visit(FileVisitor visitor)
FileTreepublic FileTree getAsFileTree()
FileCollectionFileTree. Generally, for each file in this collection, the resulting file
tree will contain the source file at the root of the tree. For each directory in this collection, the resulting
file tree will contain all the files under the source directory.getAsFileTree in interface FileCollectiongetAsFileTree in interface FileTreegetAsFileTree in class CompositeFileCollectionFileTree. Never returns null.Copyright © 2013. All rights reserved