/** true iff given ZIP/JAR file contains a MANIFEST.MF file defining a bundle symbolic name */ public boolean hasOsgiManifest(File f) { Manifest mf = getManifest(f); if (mf==null) return false; String sn = mf.getMainAttributes().getValue(Constants.BUNDLE_SYMBOLICNAME); return Strings.isNonBlank(sn); }
private void discoverManifestFromCatalogBom(boolean isCatalogBomRequired) { discoveredManifest = new BundleMaker(mgmt()).getManifest(zipFile); ZipFile zf = null; try {