/** * Constructs an <tt>XPackFile</tt> from an {@link PackFile}. * * @param file the pack file * @throws IOException if an I/O error occurred */ public XPackFile(PackFile file) throws IOException { super(new File(file.sourcePath), file.getRelativeSourcePath(), file.getTargetPath(), file.osConstraints(), file.override(), file.overrideRenameTo(), file.blockable(), file.getAdditionals(), null); this.position = 0; this.setCondition(file.getCondition()); }
file.osConstraints(), file.override(), file.overrideRenameTo(), file.blockable(), file.getAdditionals());
if (target.exists() && (packFile.override() != OverrideType.OVERRIDE_TRUE) && !isOverwriteFile(packFile, target))