Class FileVisitor


  • @Deprecated
    public abstract class FileVisitor
    extends Object
    Deprecated.
    since 6.7 use BambooFileVisitor and a glob pattern instead
    This class uses patterns to identify determine which files should be visited.
    • 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 calling Thread is interrupted.