public class MapFileTree extends Object implements MinimalFileTree, FileSystemMirroringFileTree
MinimalFileTree which is composed using a mapping from relative path to file source.| Constructor and Description |
|---|
MapFileTree(Factory<File> tmpDirSource) |
MapFileTree(File tmpDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String path,
Closure contentClosure)
Adds an element to this tree.
|
String |
getDisplayName() |
DirectoryFileTree |
getMirror()
Returns the directory tree that will contain the copy of this file tree, after all elements of this tree have been visited.
|
void |
visit(FileVisitor visitor)
Visits the elements of this tree, in breadth-wise order.
|
public MapFileTree(File tmpDir)
public String getDisplayName()
getDisplayName in interface MinimalFileCollectionpublic DirectoryFileTree getMirror()
FileSystemMirroringFileTreegetMirror in interface FileSystemMirroringFileTreepublic void visit(FileVisitor visitor)
MinimalFileTreevisit in interface MinimalFileTreeCopyright © 2013. All rights reserved