edu.isi.pegasus.common.util
public class Version extends Object
When using the class, the methods for the version number digits
will always return an integer. In order to obtain the full version
number, including any "release candidate" suffices, please prefer
the toString
method over combining the separate version
integers yourself.
Modifier and Type | Field and Description |
---|---|
private Properties |
props |
static String |
STAMP_FILENAME
Basename of the build stamp file.
|
Constructor and Description |
---|
Version() |
Modifier and Type | Method and Description |
---|---|
String |
determineBuilt()
Deprecated.
Use getTimestamp() instead
|
String |
determineInstalled()
Determines the built and architecture of the installation.
|
String |
determinePlatform()
Deprecated.
Used getPlatform() instead
|
String |
getMajor() |
String |
getMinor() |
String |
getPatch() |
String |
getPlatform() |
String |
getTimestamp() |
String |
getVersion() |
static Version |
instance()
Deprecated.
Just create a new instance
|
boolean |
matches()
Determines, if the compiled version and the installed version
match.
|
private String[] |
splitVersion() |
String |
toString() |
public static final String STAMP_FILENAME
private Properties props
public static Version instance()
public String getVersion()
private String[] splitVersion()
public String getMajor()
public String getMinor()
public String getPatch()
public String determineBuilt()
public String getTimestamp()
public String determinePlatform()
public String getPlatform()
public String determineInstalled()
public boolean matches()