public final class BroadwickVersion extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
BUILD_STRING_FORMAT |
private static String |
BUILD_TIMESTAMP |
private static String |
IMPL_BUILD |
private static String |
IMPL_VERSION |
private static BroadwickVersion |
version |
Modifier | Constructor and Description |
---|---|
private |
BroadwickVersion()
Private constructor to provide a singleton instance.
|
Modifier and Type | Method and Description |
---|---|
static String |
getImplementationTimeStamp()
Get the build time in the Manifest.MF of the jar.
|
private static String |
getImplementationTimeStamp(Manifest manifest)
Get the build timestamp from the supplied Manifest.mf file.
|
static String |
getImplementationVersion()
Get the implementation number defined in the Manifest.MF of the jar.
|
private static String |
getImplementationVersion(Manifest manifest)
Get the build version number from the supplied Manifest.mf file..
|
private static Manifest |
getManifest()
Get the object corresponding to the Manifest.mf file.
|
static String |
getVersionAndTimeStamp()
Get the build version number and timestamp.
|
private static BroadwickVersion version
private static final String BUILD_STRING_FORMAT
private static final String IMPL_VERSION
private static final String IMPL_BUILD
private static final String BUILD_TIMESTAMP
private BroadwickVersion()
public static String getImplementationVersion()
public static String getImplementationTimeStamp()
private static Manifest getManifest()
private static String getImplementationTimeStamp(Manifest manifest)
manifest
- the manifest file containing the timestamp info.private static String getImplementationVersion(Manifest manifest)
manifest
- the manifest file containing the version info.public static String getVersionAndTimeStamp()
Implementation-Version
Implementation-Build
Build-timestamp
If the manifest file is NOT the one for the framework (i.e. a model that utilises
the framework) then it will report the versions of both.Copyright © 2015 University of Glasgow. All rights reserved.