|
Re: Bundling Berkeley DBXML - Advice from the experts requested [message #64780 is a reply to message #64757] |
Tue, 11 April 2006 08:56 |
Eclipse User |
|
|
|
Originally posted by: yavin.gmx.com
> I tried using Bundle.findEntries("META-INF", "MANIFEST.MF", false).
> This gives me an Enumeration of bundle entry URLs. The URLs are of the
> form bundleentry://.... I can't seem to find API that takes one if
> these URLs and resolves it to something useful for me to get at the
> ManifestElement in the fragment.
Have a look at the function Bundle.getHeaders() or use
Bundle.getResource("META-INF/MANIFEST.MF") to get the URL to your
manifest. If you got the URL you can get the InputStream by
URL.openStream(). Pass this to the constructor java.util.jar.Manifest
and you will get a representation of the manifest.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03114 seconds