public class DirectoryFileTree extends Object implements MinimalFileTree, PatternFilterableFileTree, RandomAccessFileCollection, LocalFileTree, DirectoryTree
Specs for includes and excludes.
The file system is traversed breadth first - all files in a directory will be
visited before any child directory is visited.
A file or directory will only be visited if it matches all includes and no
excludes.| Constructor and Description |
|---|
DirectoryFileTree(File dir) |
DirectoryFileTree(File dir,
org.gradle.api.tasks.util.PatternSet patternSet) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(File file) |
DirectoryFileTree |
depthFirst() |
DirectoryFileTree |
filter(PatternFilterable patterns) |
File |
getDir()
Returns the base directory of this tree.
|
String |
getDisplayName() |
Collection<DirectoryFileTree> |
getLocalContents() |
org.gradle.api.tasks.util.PatternSet |
getPatterns()
Returns the patterns which select the files under the base directory.
|
String |
toString() |
void |
visit(FileVisitor visitor)
Process the specified file or directory.
|
public DirectoryFileTree(File dir)
public DirectoryFileTree(File dir, org.gradle.api.tasks.util.PatternSet patternSet)
public String getDisplayName()
getDisplayName in interface MinimalFileCollectionpublic org.gradle.api.tasks.util.PatternSet getPatterns()
DirectoryTreegetPatterns in interface DirectoryTreepublic File getDir()
DirectoryTreegetDir in interface DirectoryTreepublic Collection<DirectoryFileTree> getLocalContents()
getLocalContents in interface LocalFileTreepublic DirectoryFileTree filter(PatternFilterable patterns)
filter in interface PatternFilterableFileTreepublic boolean contains(File file)
contains in interface RandomAccessFileCollectionpublic void visit(FileVisitor visitor)
visit in interface MinimalFileTreepublic DirectoryFileTree depthFirst()
Copyright © 2013. All rights reserved