Package hudson.util

Class 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:
    Serialized Form
    • Constructor Detail

      • 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