String targetPath = s.getTargetPath(); if (matcher.match(targetDir + "/" + include, targetPath, casesensitive)) String targetPath = s.getTargetPath(); if (matcher.match(exclude, targetPath, casesensitive))
/** * Skips a pack file. * * @param packFile the pack file * @param pack the pack * @param packInputStream the pack stream * @throws IOException if the file cannot be skipped */ protected void skip(PackFile packFile, Pack pack, InputStream packInputStream) throws IOException { if (!pack.isLoose() && !packFile.isBackReference() && !packFile.isPack200Jar()) { long size = packFile.size(); logger.fine("|- Condition not fulfilled - skipping pack stream " + packFile.getTargetPath() + " by " + size + " bytes "); skip(packInputStream, packFile.size()); } }
file = new PackFile(resolvedFile.getParentFile(), resolvedFile, file.getTargetPath(), file.osConstraints(), file.override(), file.overrideRenameTo(), file.blockable(), file.getAdditionals());
/** * 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()); }
logger.fine("File " + packFile.getTargetPath() + " is a backreference, linked to " + linkedPackFile.getTargetPath()); packFile.setLinkedPackFile(linkedPackFile); addFile = false; logger.fine("File " + packFile.getTargetPath() + " added compressed as " + comprFormat.toName() + " (" + packFile.length() + " -> " + packFile.size() + " bytes)"); logger.fine("File " + packFile.getTargetPath() + " added uncompressed (" + bytesWritten + " bytes)"); logger.fine("File " + pack200PackFile.getTargetPath() + " added compressed as Pack 200 (" + pack200PackFile.length() + " -> " + pack200PackFile.size() + " bytes)");
logger.fine("Unpacking " + (isDirectory?"directory":"file") + " " + packFile.getTargetPath() + " (backreference: " + packFile.isBackReference() + ")"); if (shouldUnpack(packFile))
throws IOException String targetPath = packFile.getTargetPath();