From f94cb4c86f3d136364aa722514865caa85824da3 Mon Sep 17 00:00:00 2001 From: gfxadmin Date: Sat, 11 Feb 2006 02:20:43 +0000 Subject: 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 --- src/classes/com/sun/opengl/impl/Debug.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/classes/com/sun/opengl') 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()); } } -- cgit v1.2.3