/** * Constructs and initializes from a source file. * * @param baseDir the baseDirectory of the Fileselection/compilation or null * @param src file which this PackFile describes * @param target the path to install the file to * @param osList OS constraints * @param override what to do when the file already exists * @throws FileNotFoundException if the specified file does not exist. */ public PackFile(File baseDir, File src, String target, List<OsModel> osList, OverrideType override, String overrideRenameTo, Blockable blockable, Map<String, String> pack200Properties) throws IOException { this(src, FileUtil.getRelativeFileName(src, baseDir), target, osList, override, overrideRenameTo, blockable, null, pack200Properties); }
/** * Constructs and initializes from a source file. * * @param baseDir The Base directory that is used to search for the files. This is used to build the relative path's * @param src file which this PackFile describes * @param target the path to install the file to * @param osList OS constraints * @param override what to do when the file already exists * @param additionals additional attributes * @throws FileNotFoundException if the specified file does not exist. */ public PackFile(File baseDir, File src, String target, List<OsModel> osList, OverrideType override, String overrideRenameTo, Blockable blockable, Map additionals, Map<String, String> pack200Properties) throws IOException { this(src, FileUtil.getRelativeFileName(src, baseDir), target, osList, override, overrideRenameTo, blockable, additionals, pack200Properties); }