hmi.graphics.collada
Class Info
java.lang.Object
hmi.graphics.collada.Info
public final class Info
- extends Object
The Info class is intended to be used as "Main class" when the package is jarred.
Running java -jar will print some package information.
Note that some of this information is only available from the Manifest.mf file,
that is included in the jar file, and not when running directly from compiled classes.
- Author:
- Job Zwiers
|
Constructor Summary |
private |
Info()
|
|
Method Summary |
static String |
getVersion()
Returns the specification version from the Manifest.mf file, if available,
or else an empty String. |
static void |
main(String[] arg)
|
static String |
manifestInfo()
Yields a String containing manifest file info. |
static void |
requireVersion(String requiredVersion)
Checks whether the current specification version meets the specified required version;
if not, a RuntimeException is thrown. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pack
private static Package pack
packageName
private static String packageName
Info
private Info()
manifestInfo
public static String manifestInfo()
- Yields a String containing manifest file info.
When not running from a jar file, only the package name is included.
requireVersion
public static void requireVersion(String requiredVersion)
- Checks whether the current specification version meets the specified required version;
if not, a RuntimeException is thrown.
No check is performed when manifest info is not available.
getVersion
public static String getVersion()
- Returns the specification version from the Manifest.mf file, if available,
or else an empty String.
main
public static void main(String[] arg)