Package com.atlassian.bamboo.utils
Class FileVisitor
- java.lang.Object
-
- com.atlassian.bamboo.utils.FileVisitor
-
@Deprecated public abstract class FileVisitor extends Object
Deprecated.since 6.7 useBambooFileVisitor
and a glob pattern insteadThis class uses patterns to identify determine which files should be visited.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FileVisitor(File rootDirectory)
Deprecated.Visit file in the root directory
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract void
visitFile(File file)
Deprecated.Callback with the file being visted.void
visitFilesThatMatch(String filePattern)
Deprecated.Visit all files that match the pattern.
-
-
-
Constructor Detail
-
FileVisitor
protected FileVisitor(File rootDirectory)
Deprecated.Visit file in the root directory- Parameters:
rootDirectory
-
-
-
Method Detail
-
visitFilesThatMatch
public void visitFilesThatMatch(String filePattern) throws InterruptedException
Deprecated.Visit all files that match the pattern.The pattern is a comma-separated list of sub-patterns. Each sub-pattern can be:
- A subdirectory name
- An ant style (regex) pattern - see http://ant.apache.org/manual/dirtasks.html#patterns
- A file name or relative path from the root directory
If a pattern contains "./", it's normalized to remove it. For example, "/foo/./bar" and "/foo/bar" are treated the same.
If a pattern corresponds to a single file, that file is visited directly.
Note: The patterns are treated relative to the root directory defined in the class.
- Parameters:
filePattern
- Comma separated list of patterns- Throws:
InterruptedException
- if the callingThread
is interrupted.
-
visitFile
public abstract void visitFile(File file) throws InterruptedException
Deprecated.Callback with the file being visted.- Parameters:
file
- The file- Throws:
InterruptedException
-
-