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
ModifierConstructorDescriptionprotected
FileVisitor
(File rootDirectory) Deprecated.Visit file in the root directory -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Deprecated.Callback with the file being visted.void
visitFilesThatMatch
(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 callingThread
is interrupted.
-
visitFile
Deprecated.Callback with the file being visted.- Parameters:
file
- The file- Throws:
InterruptedException
-
BambooFileVisitor
and a glob pattern instead