public class MapFileTree extends java.lang.Object implements MinimalFileTree, FileSystemMirroringFileTree
MinimalFileTree which is composed using a mapping from relative path to file source.| Constructor and Description |
|---|
MapFileTree(Factory<java.io.File> tmpDirSource) |
MapFileTree(java.io.File tmpDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String path,
Closure contentClosure)
Adds an element to this tree.
|
java.lang.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(java.io.File tmpDir)
public MapFileTree(Factory<java.io.File> tmpDirSource)
public java.lang.String getDisplayName()
getDisplayName in interface MinimalFileCollectionpublic DirectoryFileTree getMirror()
FileSystemMirroringFileTreegetMirror in interface FileSystemMirroringFileTreepublic void visit(FileVisitor visitor)
MinimalFileTreevisit in interface MinimalFileTreepublic void add(java.lang.String path,
Closure contentClosure)
Copyright © 2013. All rights reserved