diff options
-rw-r--r-- | docs/api-changes-1_7.txt | 4 | ||||
-rw-r--r-- | src/main/java-templates/org/jogamp/java3d/VersionInfo.java | 32 |
2 files changed, 30 insertions, 6 deletions
diff --git a/docs/api-changes-1_7.txt b/docs/api-changes-1_7.txt index 66ca2d0..315f1a6 100644 --- a/docs/api-changes-1_7.txt +++ b/docs/api-changes-1_7.txt @@ -3,4 +3,6 @@ that deviate from the 1.6 API: I. Relocation of the javax.media package into org.jogamp to be consistent with the Maven group identifier and to avoid name clashes with the obsolete -versions of Java3D shipped with OS X and loaded as extensions.
\ No newline at end of file +versions of Java3D shipped with OS X and loaded as extensions. + +II. Addition of a new pipeline org.jogamp.Jogl2es2pipeline see /docs/GL2ES2Pipeline usage guide.md for usage.
\ No newline at end of file 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. |