public static Map < String , String > processArchiveManifest ( final File file ) throws Throwable { Map < String , String > manifestAttrs = null ; if ( file != null && file . isFile ( ) && ArchiveFileType . JAR . isType ( file . getPath ( ) ) ) { JarFile jarFile = null ; try { jarFile = new JarFile ( file ) ; manifestAttrs = processArchiveManifest ( jarFile ) ; } finally { if ( jarFile != null ) { InstallUtils . close ( jarFile ) ; } } } return manifestAttrs ; }
Gets the archive file Manifest attributes as a String Map from a file .