public class VersionInfo
extends java.lang.Object
This class serves 3 purposes: 1. It creates the JavaFX version properties to be added into the Java System Properties at the loading of the JavaFX Toolkit. The JavaFX properties are javafx.version and javafx.runtime.version. Their formats follow the specification of java.version and java.runtime.version respectively. See http://java.sun.com/j2se/versioning_naming.html for details. For example, a beta release build of JavaFX 2.0 build number 26 will contain the following properties: javafx.version = 2.0.0-beta javafx.runtime.version = 2.0.0-beta-b26 2. It provides methods to access Hudson build information and timestamp. These methods can be used to uniquely identify a particular build for internal test and deployment: The method getHudsonJobName() will returns the name of the hudson job. For example, a master build will have the name as "presidio", and a graphics-scrum will have the name as "presidio-graphics" and so for. An empty string is returned if the build isn't build on Hudson, such as a local build on a developer machine. The method getHudsonBuildNumber() will returns the number of the hudson job on a particular build scrum. The job number is sequentially incremented for each build job. For example, a master build job number of 25 was built before master job number 26. A string of zeros is returned if the build isn't build on Hudson, such as a local build on a developer machine. The method getBuildTimestamp() will returns the timestamp of the build. 3. To uniquely identify a build that isn't generated on Hudson, such as a local build on a developer machine. It substitutes the build number tag of the javafx.runtime.version string with the build timestamp. For example, a beta build of JavaFx 2.0 on a developer machine will look something like the following: javafx.version = 2.0.0-beta javafx.runtime.version = 2.0.0-beta (2011/04/28 22:08:04)
The tags of the form @STRING@ are populated by ant when the project is built
System.getProperties()
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
BUILD_TIMESTAMP
Build Timestamp.
|
private static java.lang.String |
HUDSON_BUILD_NUMBER
Hudson Build Number.
|
private static java.lang.String |
HUDSON_JOB_NAME
Hudson Job Name.
|
private static java.lang.String |
PRODUCT_NAME
Product Name.
|
private static java.lang.String |
PROMOTED_BUILD_NUMBER
Promoted build number used as part of the runtime version string.
|
private static java.lang.String |
RAW_VERSION
Raw Version number string.
|
private static java.lang.String |
RELEASE_MILESTONE
Release Milestone.
|
private static java.lang.String |
RELEASE_NAME
Release Name.
|
private static java.lang.String |
RUNTIME_VERSION
The composite version string include build number.
|
private static java.lang.String |
VERSION
The composite version string.
|
Constructor and Description |
---|
VersionInfo() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getBuildTimestamp()
Returns the build timestamp of the JavaFx API.
|
static java.lang.String |
getHudsonBuildNumber()
Returns the Hudson build number.
|
static java.lang.String |
getHudsonJobName()
Returns the Hudson job name, an empty string is return if HUNDSON_JOB_NAME
is set to "not_hudson".
|
static java.lang.String |
getReleaseMilestone()
Returns the release milestone string, an empty string is return if
RELEASE_MILESTONE is set to "fcs".
|
static java.lang.String |
getRuntimeVersion()
Returns the runtime version string.
|
static java.lang.String |
getVersion()
Returns the version string.
|
static void |
setupSystemProperties()
Setup the System properties with JavaFX API version information.
|
private static final java.lang.String BUILD_TIMESTAMP
private static final java.lang.String HUDSON_JOB_NAME
private static final java.lang.String HUDSON_BUILD_NUMBER
private static final java.lang.String PROMOTED_BUILD_NUMBER
private static final java.lang.String PRODUCT_NAME
private static final java.lang.String RAW_VERSION
private static final java.lang.String RELEASE_MILESTONE
private static final java.lang.String RELEASE_NAME
private static final java.lang.String VERSION
private static final java.lang.String RUNTIME_VERSION
public static void setupSystemProperties()
public static java.lang.String getBuildTimestamp()
public static java.lang.String getHudsonJobName()
public static java.lang.String getHudsonBuildNumber()
public static java.lang.String getReleaseMilestone()
public static java.lang.String getVersion()
public static java.lang.String getRuntimeVersion()