APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.javafx.runtime

public Class VersionInfo

extends Object
Class Inheritance

The VersionInfo class contains strings that describe the implementation and specification version of the javafx pacakges. These strings are made available as properties obtained from the System Properties class.

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

See Also
System#getProperties

Field Summary

Modifier and TypeField 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.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the build timestamp of the JavaFX API
getBuildTimestamp
()

Returns the build timestamp of the JavaFx API.

public static String

Returns:

the Hudson build number
getHudsonBuildNumber
()

Returns the Hudson build number.

public static String

Returns:

the Hudson job name
getHudsonJobName
()

Returns 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 string
getReleaseMilestone
()

Returns the release milestone string by stripping off the leading '-' from the RELEASE_SUFFIX if present.

public static String

Returns:

the runtime version string
getRuntimeVersion
()

Returns the runtime version string.

public static String

Returns:

the version string
getVersion
()

Returns the version string.

public static synchronized void
setupSystemProperties()

Setup the System properties with JavaFX API version information.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BUILD_TIMESTAMPback to summary
private static final String BUILD_TIMESTAMP

Build Timestamp.

HUDSON_BUILD_NUMBERback to summary
private static final String HUDSON_BUILD_NUMBER

Hudson Build Number.

HUDSON_JOB_NAMEback to summary
private static final String HUDSON_JOB_NAME

Hudson Job Name.

RELEASE_SUFFIXback to summary
private static final String RELEASE_SUFFIX

Release suffix.

RUNTIME_VERSIONback to summary
private static final String RUNTIME_VERSION

The composite version string include build number.

VERSIONback to summary
private static final String VERSION

The composite version string.

Constructor Detail

VersionInfoback to summary
public VersionInfo()

Method Detail

getBuildTimestampback to summary
public static String getBuildTimestamp()

Returns the build timestamp of the JavaFx API.

Returns:String

the build timestamp of the JavaFX API

getHudsonBuildNumberback to summary
public static String getHudsonBuildNumber()

Returns the Hudson build number.

Returns:String

the Hudson build number

getHudsonJobNameback 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".

Returns:String

the Hudson job name

getReleaseMilestoneback 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

Returns:String

the release milestone string

getRuntimeVersionback to summary
public static String getRuntimeVersion()

Returns the runtime version string.

Returns:String

the runtime version string

getVersionback to summary
public static String getVersion()

Returns the version string.

Returns:String

the version string

setupSystemPropertiesback 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.