Class RootFilePatternParser
- java.lang.Object
-
- org.eclipse.tycho.p2.impl.publisher.rootfiles.RootFilePatternParser
-
public class RootFilePatternParser extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RootFilePatternParser.RootFilePath
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
baseDir
private RootFilesProperties
target
private boolean
useDefaultExcludes
-
Constructor Summary
Constructors Constructor Description RootFilePatternParser(java.io.File baseDir, RootFilesProperties target, boolean useDefaultExcludes)
-
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).
-
-
-
Field Detail
-
baseDir
private final java.io.File baseDir
-
target
private final RootFilesProperties target
-
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
- root = license.html -> licence.html exists but is not a directory (contrary to PDE product export where build fails )
- root = file:not_existing_file.txt, not_existing_dir -> specified file or directory does not exist
- root = file:C:/_tmp/file_absolute.txt -> existing file with absolute path;but not specified as absolute
- root = file:absolute:C:/_tmp/file_absolute.txt -> Using 'file:absolute:' (instead of correct 'absolute:file:')
- Parameters:
paths
- root file pathsdestinationPath
- the relative path where the root files should be placed into or "" if they should be placed in the installation root folder
-
-