// so aborting with diagnostics if we find it. We need to better understand what this
// means and work accordingly. - KK
if(a.getFile()==null) {
throw new AssertionError(a.getId()+" is not resolved. a="+a);
}
Jar jar;
try {
jar = Jar.create(a.getFile());
} catch (IOException ioe) {
// not a jar file, so continue.
continue;
}
Manifest manifest = jar.getManifest();
String name = null;
if (manifest!=null) {
Attributes attributes = manifest.getMainAttributes();
name = attributes.getValue(ManifestConstants.BUNDLE_NAME);