java.lang.Object
org.eclipse.tycho.p2.impl.publisher.rootfiles.AbstractFileSet
org.eclipse.tycho.p2.impl.publisher.rootfiles.FileSet

public class FileSet extends AbstractFileSet
Ant-like file set. Wildcards *, ** and ? are implemented as described on
{@link https://en.wikibooks.org/wiki/Apache_Ant/Fileset }. This is not a complete equivalent implementation of the ant fileset. Only the subset needed for PDE root files is supported.
  • Constructor Details

    • FileSet

      public FileSet(File baseDir, String pattern)
      Equivalent to #FileSet(File, String, boolean) with useDefaultExludes == true; destinationDir = ""
    • FileSet

      public FileSet(File baseDir, String pattern, String destinationDir, boolean useDefaultExcludes)
      Creates a fileset.
      Parameters:
      baseDir - the base directory to scan
      pattern - ant file inclusion pattern (relative to baseDir). Wildcards **,* and ? are supported.
      useDefaultExcludes - whether to use default file excludes for typical SCM metadata files.
  • Method Details

    • getBaseDir

      public File getBaseDir()
    • scan

      public FileToPathMap scan()
      Scan the filesystem below baseDir for matching files.
      Returns:
      map canonical File -> basedir-relative path