Class FileSet

java.lang.Object
aQute.lib.fileset.FileSet

public class FileSet extends Object
Implements a FileSet a la Ant/Gradle. A file set is a specification of a set of files. A file set specification contains a number of '/' separated segments. The last segment is Glob expression and the preceding segments specify either a directory, a wildcard directory ('*'), or a set of wildcard directories ('**').
 filesets ::= fileset ( ',' fileset )*
 fileset  ::= ( segment '/' )* filematch
 segment  ::= any | glob
 glob     ::= 
 any      ::= '**'
 filematch::= allfile | anyfile | glob
 anyfile  ::= '**' glob
 allfile  ::= '**'
 
  • Field Details

  • Constructor Details

  • Method Details

    • compile

      private static FileSet.DFA compile(File base, String filesetSpec)
    • getFiles

      public Set<File> getFiles()
    • isIncluded

      public boolean isIncluded(File file)
    • isIncluded

      public boolean isIncluded(String relativePath)
    • hasOverlap

      public boolean hasOverlap(Collection<File> files)
    • findFirst

      public File findFirst(String file)
    • toString

      public String toString()
      Overrides:
      toString in class Object