Package hudson.util

Class DirScanner.Glob

java.lang.Object
hudson.util.DirScanner
hudson.util.DirScanner.Glob
All Implemented Interfaces:
Serializable
Enclosing class:
DirScanner

public static class DirScanner.Glob extends DirScanner
Scans by using Ant GLOB syntax.

An initial basename is prepended as with DirScanner.Full if the includes and excludes are blank. Otherwise there is no prepended path. So for example when scanning a directory /tmp/dir containing a file file, the relativePath sent to the FileVisitor will be dir/file if includes is blank but file if it is **. (This anomaly is historical.)

See Also:
  • Constructor Details

    • Glob

      public Glob(String includes, String excludes)
    • Glob

      public Glob(String includes, String excludes, boolean useDefaultExcludes)
    • Glob

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Glob(String includes, String excludes, boolean useDefaultExcludes, OpenOption... openOptions)
      Since:
      2.275 and 2.263.2
  • Method Details