Class RootFilePatternParser


  • public class RootFilePatternParser
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void addFilesFromPatterns​(java.lang.String[] paths, java.lang.String destinationDir)
      According to Eclipse Help > Help Contents: Plug-in Development Environment Guide > Tasks > PDE Build Advanced Topics > Adding Files to the Root of a Build, value(s) of root are a comma separated list of relative paths to folder(s).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • baseDir

        private final java.io.File baseDir
      • useDefaultExcludes

        private boolean useDefaultExcludes
    • Constructor Detail

      • RootFilePatternParser

        public RootFilePatternParser​(java.io.File baseDir,
                                     RootFilesProperties target,
                                     boolean useDefaultExcludes)
    • Method Detail

      • addFilesFromPatterns

        void addFilesFromPatterns​(java.lang.String[] paths,
                                  java.lang.String destinationDir)
        According to Eclipse Help > Help Contents: Plug-in Development Environment Guide > Tasks > PDE Build Advanced Topics > Adding Files to the Root of a Build, value(s) of root are a comma separated list of relative paths to folder(s). The contents of the folder are included as root files to the installation. Exception are if a list value starts with: 'file:', 'absolute:' or 'absolute:file:'. 'file:' indicates that the included content is a file only. 'absolute:' indicates that the path is absolute. Examples:
        • root=rootfiles1, rootfiles2, license.html
        • root=file:license.html
        • root=absolute:/rootfiles1
        • root=absolute:file:/eclipse/about.html
        • root.folder.adir:rootfiles1
        Configurations like root.<os.ws.arch> is also supported here as well as root.<os.ws.arch>.folder.<subfolder> Following wrongly specified cases are simply ignored when trying to find root files
        1. root = license.html -> licence.html exists but is not a directory (contrary to PDE product export where build fails )
        2. root = file:not_existing_file.txt, not_existing_dir -> specified file or directory does not exist
        3. root = file:C:/_tmp/file_absolute.txt -> existing file with absolute path;but not specified as absolute
        4. root = file:absolute:C:/_tmp/file_absolute.txt -> Using 'file:absolute:' (instead of correct 'absolute:file:')
        Parameters:
        paths - root file paths
        destinationPath - the relative path where the root files should be placed into or "" if they should be placed in the installation root folder