summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/com/jogamp/common/GlueGenVersion.java1
-rw-r--r--src/java/com/jogamp/common/util/VersionUtil.java8
2 files changed, 9 insertions, 0 deletions
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
@@ -67,6 +67,14 @@ public class VersionUtil {
}
/**
+ * 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.
* @param cl A ClassLoader which should find the manifest.