Package com.atlassian.bamboo.utils
Class FileVisitor
java.lang.Object
com.atlassian.bamboo.utils.FileVisitor
Deprecated.
This class uses patterns to identify determine which files should be visited.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFileVisitor(File rootDirectory) Deprecated.Visit file in the root directory -
Method Summary
Modifier and TypeMethodDescriptionabstract voidDeprecated.Callback with the file being visted.voidvisitFilesThatMatch(String filePattern) Deprecated.Visit all files that match the pattern.
-
Constructor Details
-
FileVisitor
Deprecated.Visit file in the root directory- Parameters:
rootDirectory-
-
-
Method Details
-
visitFilesThatMatch
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 callingThreadis interrupted.
-
visitFile
Deprecated.Callback with the file being visted.- Parameters:
file- The file- Throws:
InterruptedException
-
BambooFileVisitorand a glob pattern instead