diff options
author | phil <[email protected]> | 2016-11-05 15:17:40 +1300 |
---|---|---|
committer | phil <[email protected]> | 2016-11-05 15:17:40 +1300 |
commit | 1595e18df18c4b6bbb215bdc8c9d6966c433ef2b (patch) | |
tree | 68ddd7dadb032be78d65dd27c4e50447c75da65c /src | |
parent | bb56c7dd590748fe5d206bbfc102b2474b6b20c7 (diff) |
Simplified the j3d.version message
As returned by
VirtualUniverse.getProperties().get("j3d.version")
The original full message can be obtained from
VersionInfo.getVersionFull()
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java-templates/org/jogamp/java3d/VersionInfo.java | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/src/main/java-templates/org/jogamp/java3d/VersionInfo.java b/src/main/java-templates/org/jogamp/java3d/VersionInfo.java index 29feafe..46b6c45 100644 --- a/src/main/java-templates/org/jogamp/java3d/VersionInfo.java +++ b/src/main/java-templates/org/jogamp/java3d/VersionInfo.java @@ -196,6 +196,12 @@ class VersionInfo extends Object { * initializer for this class. */ private static final String VERSION; + + /** + * The composite version string. This is composed in the static + * initializer for this class. + */ + private static final String VERSION_FULL; /** * The composite vendor string. This is composed in the static @@ -236,48 +242,56 @@ class VersionInfo extends Object { tmpVendor += " & " + VENDOR_DEVELOPER; } + String tmpVersionFull = VERSION_BASE; String tmpVersion = VERSION_BASE; if (isNonEmpty(VERSION_SUFFIX)) { if (isPatchBuild) { + tmpVersionFull += "_"; tmpVersion += "_"; } else { - tmpVersion += "-"; + tmpVersionFull += "-"; + tmpVersion += "_"; } + tmpVersionFull += VERSION_SUFFIX; tmpVersion += VERSION_SUFFIX; } if (isDailyBuild && isNonEmpty(BUILDTIME)) { - tmpVersion += "-" + BUILDTIME; + tmpVersionFull += "-" + BUILDTIME; } if (isExperimental) { - tmpVersion += "-experimental"; + tmpVersionFull += "-experimental"; } // Append the optional fields that follow the first space if (isProduction) { if (isFcsBuild) { + tmpVersionFull += " fcs"; tmpVersion += " fcs"; } else if (isPatchBuild) { + tmpVersionFull += " fcs+patch"; tmpVersion += " fcs+patch"; } if (isNonEmpty(VERSION_BUILD)) { + tmpVersionFull += " (" + VERSION_BUILD + ")"; tmpVersion += " (" + VERSION_BUILD + ")"; } } if (useVerboseBuildTime && isNonEmpty(BUILDTIME_VERBOSE)) { - tmpVersion += " " + BUILDTIME_VERBOSE; + tmpVersionFull += " " + BUILDTIME_VERBOSE; } if (isNonEmpty(VERSION_DEV_STRING)) { - tmpVersion += " " + VERSION_DEV_STRING; + tmpVersionFull += " " + VERSION_DEV_STRING; } + VERSION_FULL = tmpVersionFull; VERSION = tmpVersion; VENDOR = tmpVendor; } @@ -306,6 +320,14 @@ class VersionInfo extends Object { static String getVersion() { return VERSION; } + + /** + * Returns the implementation version string. + * @return the implementation version string + */ + static String getVersionFull() { + return VERSION; + } /** * Returns the implementation vendor string. |