throw new FileNotFoundException("Not a JarFile: "+file);
}
Manifest tmpMf = jarFile.getManifest();
this.mf = tmpMf == null ? new Manifest() : tmpMf;
Attributes mfAttrs = mf.getMainAttributes();
String sealedAttr = mfAttrs.getValue(Attributes.Name.SEALED);
sealed = Boolean.valueOf(sealedAttr).booleanValue();
specVersion = mfAttrs.getValue(Attributes.Name.SPECIFICATION_VERSION);
if( specVersion == null )
{
specVersion = release.specVersion;
mfAttrs.put(Attributes.Name.SPECIFICATION_VERSION, specVersion);
}
specVendor = mfAttrs.getValue(Attributes.Name.SPECIFICATION_VENDOR);
if( specVendor == null )
{
specVendor = release.specVendor;
mfAttrs.put(Attributes.Name.SPECIFICATION_VENDOR, specVendor);
}
specTitle = mfAttrs.getValue(Attributes.Name.SPECIFICATION_TITLE);
if( specTitle == null )
{
specTitle = release.specTitle;
mfAttrs.put(Attributes.Name.SPECIFICATION_TITLE, specTitle);
}
implTitle = mfAttrs.getValue(Attributes.Name.IMPLEMENTATION_TITLE);
if( implTitle == null )
{
implTitle = release.implTitle;
mfAttrs.put(Attributes.Name.IMPLEMENTATION_TITLE, implTitle);
}
implVersion = mfAttrs.getValue(Attributes.Name.IMPLEMENTATION_VERSION);
if( implVersion == null )
{
implVersion = release.implVersion;
mfAttrs.put(Attributes.Name.IMPLEMENTATION_VERSION, implVersion);
}
implVendor = mfAttrs.getValue(Attributes.Name.IMPLEMENTATION_VENDOR);
if( implVendor == null )
{
implVendor = release.implVendor;
mfAttrs.put(Attributes.Name.IMPLEMENTATION_VENDOR, implVendor);
}
implVendorID = mfAttrs.getValue(Attributes.Name.IMPLEMENTATION_VENDOR_ID);
if( implVendorID == null )
{
implVendorID = release.implVendorID;
mfAttrs.put(Attributes.Name.IMPLEMENTATION_VENDOR_ID, implVendorID);
}
implURL = mfAttrs.getValue(Attributes.Name.IMPLEMENTATION_URL);
if( implURL == null )
{
implURL = release.implURL;
mfAttrs.put(Attributes.Name.IMPLEMENTATION_URL, implURL);
}
}