summaryrefslogtreecommitdiffstats
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
parent0f1f2c1a2d26e69813259e68e445535d3175f464 (diff)
VersionInfo self containing (adding main)
-rw-r--r--make/scripts/runtest.sh3
-rw-r--r--src/java/com/jogamp/common/util/VersionInfo.java3
-rw-r--r--src/junit/com/jogamp/common/util/TestVersionInfo.java3
3 files changed, 6 insertions, 3 deletions
diff --git a/make/scripts/runtest.sh b/make/scripts/runtest.sh
index eea1313..0cb645b 100644
--- a/make/scripts/runtest.sh
+++ b/make/scripts/runtest.sh
@@ -38,7 +38,8 @@ function onetest() {
echo
}
-onetest com.jogamp.common.util.TestVersionInfo 2>&1 | tee -a $LOG
+onetest com.jogamp.common.util.VersionInfo 2>&1 | tee -a $LOG
+#onetest com.jogamp.common.util.TestVersionInfo 2>&1 | tee -a $LOG
#onetest com.jogamp.common.util.TestIteratorIndexCORE 2>&1 | tee -a $LOG
#onetest com.jogamp.common.util.locks.TestRecursiveLock01 2>&1 | tee -a $LOG
#onetest com.jogamp.common.util.TestArrayHashSet01 2>&1 | tee -a $LOG
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"));
}