Exemple #1
0
 private static Hashtable<String, String> getManifestAttributes(File jarFile) {
   Hashtable<String, String> h = new Hashtable<String, String>();
   JarFile jar = null;
   try {
     jar = new JarFile(jarFile);
     Manifest manifest = jar.getManifest();
     h = getManifestAttributes(manifest);
   } catch (Exception ex) {
   }
   if (jar != null) {
     try {
       jar.close();
     } catch (Exception ignore) {
     }
   }
   return h;
 }