public class NormalizingCopySpecVisitor extends DelegatingCopySpecVisitor
CopySpecVisitor which cleans up the tree as it is visited. Removes duplicate directories and
adds in missing directories. Removes empty directories if instructed to do so by copy spec.| Constructor and Description |
|---|
NormalizingCopySpecVisitor(CopySpecVisitor visitor) |
| Modifier and Type | Method and Description |
|---|---|
void |
endVisit()
Called at the end of the visit.
|
void |
visitDir(FileVisitDetails dirDetails)
Visits a directory.
|
void |
visitFile(FileVisitDetails fileDetails)
Visits a file.
|
void |
visitSpec(ReadableCopySpec spec)
Visits a spec.
|
getDidWork, getVisitor, startVisitpublic NormalizingCopySpecVisitor(CopySpecVisitor visitor)
public void visitSpec(ReadableCopySpec spec)
CopySpecVisitorvisitSpec in interface CopySpecVisitorvisitSpec in class DelegatingCopySpecVisitorpublic void endVisit()
CopySpecVisitorendVisit in interface CopySpecVisitorendVisit in class DelegatingCopySpecVisitorpublic void visitFile(FileVisitDetails fileDetails)
FileVisitorvisitFile in interface FileVisitorvisitFile in class DelegatingCopySpecVisitorfileDetails - Meta-info about the file.public void visitDir(FileVisitDetails dirDetails)
FileVisitorvisitDir in interface FileVisitorvisitDir in class DelegatingCopySpecVisitordirDetails - Meta-info about the directory.Copyright © 2013. All rights reserved