From 80e26cb102201af7d4159842edf39bcf989ebaa1 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Thu, 18 Nov 2010 17:07:00 +0100 Subject: print platform info (GlueGenVersion). --- src/java/com/jogamp/common/GlueGenVersion.java | 1 + src/java/com/jogamp/common/util/VersionUtil.java | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'src/java') diff --git a/src/java/com/jogamp/common/GlueGenVersion.java b/src/java/com/jogamp/common/GlueGenVersion.java index c59e96b..87c9d3e 100644 --- a/src/java/com/jogamp/common/GlueGenVersion.java +++ b/src/java/com/jogamp/common/GlueGenVersion.java @@ -54,6 +54,7 @@ public class GlueGenVersion extends JogampVersion { } public static void main(String args[]) { + System.err.println(VersionUtil.getPlatformInfo()); System.err.println(GlueGenVersion.getInstance()); } } diff --git a/src/java/com/jogamp/common/util/VersionUtil.java b/src/java/com/jogamp/common/util/VersionUtil.java index ac4d0b8..123d1e5 100644 --- a/src/java/com/jogamp/common/util/VersionUtil.java +++ b/src/java/com/jogamp/common/util/VersionUtil.java @@ -66,6 +66,14 @@ public class VersionUtil { return sb; } + /** + * Prints platfomr info. + * @see #getPlatformInfo(java.lang.StringBuffer) + */ + public static String getPlatformInfo() { + return getPlatformInfo(null).toString(); + } + /** * Returns the manifest of the jar which contains the specified extension. * The provided ClassLoader is used for resource loading. -- cgit v1.2.3