org.pentaho.platform.util
Class ManifestUtil
java.lang.Object
org.pentaho.platform.util.ManifestUtil
public class ManifestUtil
- extends java.lang.Object
Set of utility methods related to the manifest file.
NOTE: if the manifest file can not be retrieved, these methods will not work
and will return null. The most common case for this is the the
code is being run outside of a jar file.
- Author:
- dkincade
|
Method Summary |
static java.util.jar.Manifest |
getManifest()
Retrieves the manifest information for the jar file which contains
this utility class. |
static java.util.jar.Manifest |
getManifest(java.lang.Class clazz)
Retrieves the manifest information for the jar file which contains
the specified class. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManifestUtil
public ManifestUtil()
getManifest
public static java.util.jar.Manifest getManifest()
- Retrieves the manifest information for the jar file which contains
this utility class.
- Returns:
- The Manifest file for the jar file which contains this utility class,
or
null if the code is not in a jar file.
getManifest
public static java.util.jar.Manifest getManifest(java.lang.Class clazz)
- Retrieves the manifest information for the jar file which contains
the specified class.
- Returns:
- The Manifest file for the jar file which contains the specified class,
or
null if the code is not in a jar file.