aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com
diff options
context:
space:
mode:
authorgfxadmin <[email protected]>2006-02-11 02:20:43 +0000
committergfxadmin <[email protected]>2006-02-11 02:20:43 +0000
commitf94cb4c86f3d136364aa722514865caa85824da3 (patch)
treeac5f062b39f27048ed58bafb3d8ec1df07420bdb /src/classes/com
parent8ebdef6860e34bf16b9b13c657f651bf9ce32ab3 (diff)
Issue number:
Obtained from: Submitted by: Travis Reviewed by: Change the implementation for querying version information when the property jogl.verbose is used. This now uses the java.lang.Package API to get information from the jogl.jar manifest instead of using com.sun.opengl.util.Version. com.sun.util.opengl.Version API will be going away soon. It is not rich enough to differentiate the specification version, the implementation version, the implementation vendor, etc. % java -Djava.library.path=/home/tbryson/temp/libs -Djogl.verbose demos.gears.Gears JOGL specification version 1.0 Public Review plus JOGL implementation version 1.0 Beta2 plus JOGL implementation vendor java.net JOGL community . . . I added "plus" in the version/spec information for the builds starting tonight so we will be able to differentiate between the official Beta 2 build and all subsequent builds, etc. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@598 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com')
-rw-r--r--src/classes/com/sun/opengl/impl/Debug.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/classes/com/sun/opengl/impl/Debug.java b/src/classes/com/sun/opengl/impl/Debug.java
index a2490d1ef..9faa04fa7 100644
--- a/src/classes/com/sun/opengl/impl/Debug.java
+++ b/src/classes/com/sun/opengl/impl/Debug.java
@@ -40,7 +40,6 @@
package com.sun.opengl.impl;
import java.security.*;
-import com.sun.opengl.util.Version;
/** Helper routines for logging and debugging. */
@@ -53,7 +52,10 @@ public class Debug {
verbose = isPropertyDefined("jogl.verbose");
debugAll = isPropertyDefined("jogl.debug");
if (verbose) {
- System.err.println("JOGL version " + Version.getVersion());
+ Package p = Package.getPackage("javax.media.opengl");
+ System.err.println("JOGL specification version " + p.getSpecificationVersion());
+ System.err.println("JOGL implementation version " + p.getImplementationVersion());
+ System.err.println("JOGL implementation vendor " + p.getImplementationVendor());
}
}