summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-10 11:11:19 +0100
committerSven Gothel <[email protected]>2010-11-10 11:11:19 +0100
commita3e6a4c6a40d2c6ba64c81b48a7f8557d5c1219b (patch)
treece3a1e1136176d09fb5036508329c810dca30ddd /src
parent0f1f2c1a2d26e69813259e68e445535d3175f464 (diff)
VersionInfo self containing (adding main)
Diffstat (limited to 'src')
-rw-r--r--src/java/com/jogamp/common/util/VersionInfo.java3
-rw-r--r--src/junit/com/jogamp/common/util/TestVersionInfo.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/util/VersionInfo.java b/src/java/com/jogamp/common/util/VersionInfo.java
index 553e906..1e76812 100644
--- a/src/java/com/jogamp/common/util/VersionInfo.java
+++ b/src/java/com/jogamp/common/util/VersionInfo.java
@@ -34,4 +34,7 @@ public class VersionInfo {
return VersionUtil.getInfo(VersionInfo.class.getClassLoader(), prefix, "com.jogamp.common.util", "VersionInfo", sb);
}
+ public static void main(String args[]) {
+ System.err.println(VersionInfo.getInfo(null, "GlueGen"));
+ }
} \ No newline at end of file
diff --git a/src/junit/com/jogamp/common/util/TestVersionInfo.java b/src/junit/com/jogamp/common/util/TestVersionInfo.java
index f0c39d5..abfbee1 100644
--- a/src/junit/com/jogamp/common/util/TestVersionInfo.java
+++ b/src/junit/com/jogamp/common/util/TestVersionInfo.java
@@ -36,8 +36,7 @@ public class TestVersionInfo {
@Test
public void testInfo01() {
- StringBuffer sb = VersionInfo.getInfo(null, "GlueGen");
- System.err.println(sb);
+ System.err.println(VersionInfo.getInfo(null, "GlueGen"));
}