public class DirectoryFileTree extends java.lang.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(java.io.File dir) |
DirectoryFileTree(java.io.File dir,
org.gradle.api.tasks.util.PatternSet patternSet) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.io.File file) |
DirectoryFileTree |
depthFirst() |
DirectoryFileTree |
filter(PatternFilterable patterns) |
java.io.File |
getDir()
Returns the base directory of this tree.
|
java.lang.String |
getDisplayName() |
java.util.Collection<DirectoryFileTree> |
getLocalContents() |
org.gradle.api.tasks.util.PatternSet |
getPatterns()
Returns the patterns which select the files under the base directory.
|
java.lang.String |
toString() |
void |
visit(FileVisitor visitor)
Process the specified file or directory.
|
public DirectoryFileTree(java.io.File dir)
public DirectoryFileTree(java.io.File dir,
org.gradle.api.tasks.util.PatternSet patternSet)
public java.lang.String getDisplayName()
getDisplayName in interface MinimalFileCollectionpublic java.lang.String toString()
toString in class java.lang.Objectpublic org.gradle.api.tasks.util.PatternSet getPatterns()
DirectoryTreegetPatterns in interface DirectoryTreepublic java.io.File getDir()
DirectoryTreegetDir in interface DirectoryTreepublic java.util.Collection<DirectoryFileTree> getLocalContents()
getLocalContents in interface LocalFileTreepublic DirectoryFileTree filter(PatternFilterable patterns)
filter in interface PatternFilterableFileTreepublic boolean contains(java.io.File file)
contains in interface RandomAccessFileCollectionpublic void visit(FileVisitor visitor)
visit in interface MinimalFileTreepublic DirectoryFileTree depthFirst()
Copyright © 2013. All rights reserved