public static ManifestVersion get ( final Class < ? > clazz ) { final String manifestUrl = ClassExtensions . getManifestUrl ( clazz ) ; try { return of ( manifestUrl != null ? new URL ( manifestUrl ) : null ) ; } catch ( final MalformedURLException ignore ) { return of ( null ) ; } }
Returns a ManifestVersion object by reading the manifest file from the JAR WAR or EAR file that contains the given class .