/** * writes the content of an archive to another archive * * @param in input archive * @param out output archive */ protected void writeContents(ReadableArchive in, WritableArchive out) throws IOException { writeContents(in, out, null); }
/** * writes the content of an archive to another archive * * @param in input archive * @param out output archive */ protected void writeContents(ReadableArchive in, WritableArchive out) throws IOException { writeContents(in, out, null); }
public void write(ReadableArchive in, WritableArchive out) throws IOException { writeContents(in, out); }
public void write(ReadableArchive in, WritableArchive out) throws IOException { writeContents(in, out); }
/** * writes the content of an archive to a JarFile * * @param out jar output stream to write to */ protected void writeContents(WritableArchive out) throws IOException { ReadableArchive in = archiveFactory.openArchive(new File(path)); writeContents(in, out); in.close(); }
/** * writes the content of an archive to a JarFile * * @param out jar output stream to write to */ protected void writeContents(WritableArchive out) throws IOException { ReadableArchive in = archiveFactory.openArchive(new File(path)); writeContents(in, out); in.close(); }
/** * writes the content of an archive to a JarFile * * @param in the input archive * @param out the archive output stream to write to * @param entriesToSkip the files to not write from the original archive */ @Override protected void writeContents(ReadableArchive in, WritableArchive out, Vector entriesToSkip) throws IOException { // prepare the manifest file to add the main class entry if (manifest == null) { manifest = new Manifest(); } manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, MANIFEST_VERSION_VALUE); manifest.getMainAttributes().put(Attributes.Name.MAIN_CLASS, ((ApplicationClientDescriptor) getDescriptor()).getMainClassName()); super.writeContents(in, out, entriesToSkip); }
/** * writes the content of an archive to a JarFile * * @param in the input archive * @param out the archive output stream to write to * @param entriesToSkip the files to not write from the original archive */ @Override protected void writeContents(ReadableArchive in, WritableArchive out, Vector entriesToSkip) throws IOException { // prepare the manifest file to add the main class entry if (manifest == null) { manifest = new Manifest(); } manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, MANIFEST_VERSION_VALUE); manifest.getMainAttributes().put(Attributes.Name.MAIN_CLASS, ((ApplicationClientDescriptor) getDescriptor()).getMainClassName()); super.writeContents(in, out, entriesToSkip); }
subArchivist.writeContents(internalJar); out.closeEntry(internalJar); } finally { super.writeContents(in, out, filesToSkip);
writeContents(in, out); out.close(); in.close();
subArchivist.writeContents(internalJar); out.closeEntry(internalJar); super.writeContents(in, out, filesToSkip);
writeContents(in, out); out.close(); in.close();