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 https://openjdk.org/jeps/223 for details. For example, an early access build of JavaFX 9 build 76 will contain the following properties: javafx.version = 9-ea javafx.runtime.version = 9-ea+76 An fcs build of JavaFX 9 build 135 will contain the following properties: javafx.version = 9 javafx.runtime.version = 9+135 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() returns the name of the Hudson job. An empty string is returned if the build isn't built on Hudson, such as a local build on a developer machine. The method getHudsonBuildNumber() returns the number of the Hudson build for a particular job. A string of zeros is returned if the build isn't built 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 build of JavaFX 9 on a developer machine will look something like the following: javafx.version = 9-internal javafx.runtime.version = 9-internal+0-2015-08-10_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 final String | BUILD_TIMESTAMP
Build Timestamp. |
| private static final String | HUDSON_BUILD_NUMBER
Hudson Build Number. |
| private static final String | HUDSON_JOB_NAME
Hudson Job Name. |
| private static final String | RELEASE_SUFFIX
Release suffix. |
| private static final String | RUNTIME_VERSION
The composite version string include build number. |
| private static final String | VERSION
The composite version string. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the build timestamp of the JavaFX APIReturns the build timestamp of the JavaFx API. |
| public static String | |
| public static String | Returns: the Hudson job nameReturns the Hudson job name, an empty string is return if HUNDSON_JOB_NAME is set to "not_hudson". |
| public static String | Returns: the release milestone stringReturns the release milestone string by stripping off the leading '-' from the RELEASE_SUFFIX if present. |
| public static String | |
| public static String | |
| public static synchronized void |
| BUILD_TIMESTAMP | back to summary |
|---|---|
| private static final String BUILD_TIMESTAMP Build Timestamp. | |
| HUDSON_BUILD_NUMBER | back to summary |
|---|---|
| private static final String HUDSON_BUILD_NUMBER Hudson Build Number. | |
| HUDSON_JOB_NAME | back to summary |
|---|---|
| private static final String HUDSON_JOB_NAME Hudson Job Name. | |
| RELEASE_SUFFIX | back to summary |
|---|---|
| private static final String RELEASE_SUFFIX Release suffix. | |
| RUNTIME_VERSION | back to summary |
|---|---|
| private static final String RUNTIME_VERSION The composite version string include build number. | |
| VERSION | back to summary |
|---|---|
| private static final String VERSION The composite version string. | |
| VersionInfo | back to summary |
|---|---|
| public VersionInfo() | |
| getBuildTimestamp | back to summary |
|---|---|
| public static String getBuildTimestamp() Returns the build timestamp of the JavaFx API.
| |
| getHudsonBuildNumber | back to summary |
|---|---|
| public static String getHudsonBuildNumber() Returns the Hudson build number.
| |
| getHudsonJobName | back to summary |
|---|---|
| public static String getHudsonJobName() Returns the Hudson job name, an empty string is return if HUNDSON_JOB_NAME is set to "not_hudson".
| |
| getReleaseMilestone | back to summary |
|---|---|
| public static String getReleaseMilestone() Returns the release milestone string by stripping off the leading '-' from the RELEASE_SUFFIX if present. Note RELEASE_SUFFIX is expected to be empty for fcs versions
| |
| getRuntimeVersion | back to summary |
|---|---|
| public static String getRuntimeVersion() Returns the runtime version string.
| |
| getVersion | back to summary |
|---|---|
| public static String getVersion() Returns the version string.
| |
| setupSystemProperties | back to summary |
|---|---|
| public static synchronized void setupSystemProperties() Setup the System properties with JavaFX API version information. The format of the value strings of javafx.version and javafx.runtime.version will follow the same pattern as java.version and java.runtime.version respectively. See https://openjdk.org/jeps/223 for details. | |