public static String findManifestProperty ( String propertyName ) { String result = null ; InputStream is = null ; try { is = ManifestUtils . class . getResourceAsStream ( "/META-INF/MANIFEST.MF" ) ; Properties props = new Properties ( ) ; props . load ( is ) ; result = findManifestProperty ( props , propertyName ) ; } catch ( IOException e ) { Logger logger = Logger . getLogger ( ManifestUtils . class . getName ( ) ) ; logger . warning ( "Could not read the bundle manifest. " + e . getMessage ( ) ) ; } finally { Utils . closeQuietly ( is ) ; } return result ; }
Finds a property in the MANIFEST file .