Created
November 14, 2009 09:23
-
-
Save nebhale/234456 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void writeManifest(JarOutputStream out, BundleManifest manifest) throws IOException { | |
out.putNextEntry(new JarEntry("META-INF/")); | |
out.write(new byte[0]); | |
out.flush(); | |
out.closeEntry(); | |
out.putNextEntry(new JarEntry(JarFile.MANIFEST_NAME)); | |
manifest.write(new OutputStreamWriter(out)); | |
out.flush(); | |
out.closeEntry(); | |
// Throws exception because BundleManifest already closed the writer it was passed in | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment