diff options
author | Michael Bien <[email protected]> | 2010-11-18 17:07:00 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-11-18 17:07:00 +0100 |
commit | 80e26cb102201af7d4159842edf39bcf989ebaa1 (patch) | |
tree | d4df5aa1e42a561942160c915293f6aa6818a1ac /src | |
parent | 1e0288b397dfd914532c0f0cde850f4e5c5bc91d (diff) |
print platform info (GlueGenVersion).
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/jogamp/common/GlueGenVersion.java | 1 | ||||
-rw-r--r-- | src/java/com/jogamp/common/util/VersionUtil.java | 8 |
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. |