This content has been marked as final.
Show 3 replies
-
1. Re: Unable to read informations from manifest
dmlloyd Sep 26, 2011 9:18 AM (in response to dastraub)1 of 1 people found this helpfulThis should have been fixed in 7.0.2, if I remember correctly.
-
2. Re: Unable to read informations from manifest
fs5 Dec 25, 2011 4:48 AM (in response to dmlloyd)Still not fixed in 7.0.2 nor in 7.1.0.CR1b. Probably reported as AS7-1970.
I see myself forced to this workaround:
URL jarUrl = MyClass.class.getProtectionDomain().getCodeSource().getLocation();
VirtualFile jarFile = VFS.getChild(jarUrl.toURI());
Manifest manifest = VFSUtils.getManifest(jarFile);
Attributes attributes = manifest.getMainAttributes();
String implementationVersion = attributes.getValue(Name.IMPLEMENTATION_VERSION);
-
3. Re: Unable to read informations from manifest
dastraub Dec 26, 2011 11:25 AM (in response to fs5)Why should we use a proprietary API and therefore add unecccessary dependencies for a "standard" Java SDK function ?