JBoss Community

Re: Unable to read informations from manifest

created by Frank Schwarz in JBoss AS 7 Development - View the full discussion

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 jar = MyClass.class.getProtectionDomain().getCodeSource().getLocation();

VirtualFile jarFile = VFS.getChild(jar.toURI());

Manifest manifest = VFSUtils.getManifest(jarFile);

Attributes attributes = manifest.getMainAttributes();

String implementationTitle = attributes.getValue(Name.IMPLEMENTATION_TITLE);

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community