public int compareTo(XPackFile arg0) { return this.getTargetPath().compareTo(arg0.getTargetPath()); } }
XPackFile pf = new XPackFile(packfile); File file = packInfo.getFile(packfile); logger.fine("Next file: " + file.getAbsolutePath()); if (!pf.isDirectory()) FileUtils.copyFile(file, new File(targetDir, pf.getRelativeSourcePath())); pack.addFileSize(pf.length());
packFile.setArchiveFilePosition(beforePosition); if (bytesWritten != packFile.length())
long position = ((XPackFile) packFile).getArchiveFilePosition();
/** * 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()); }