summaryrefslogtreecommitdiffstats
path: root/java-dbg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'java-dbg.sh')
-rw-r--r--java-dbg.sh17
1 files changed, 14 insertions, 3 deletions
diff --git a/java-dbg.sh b/java-dbg.sh
index fd88bcd..455b8b6 100644
--- a/java-dbg.sh
+++ b/java-dbg.sh
@@ -1,7 +1,18 @@
#! /bin/sh
-# java -Dgluegen.debug.ProcAddressHelper=true -Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all $* 2>&1 | tee java-dbg.log
-java -Dnewt.debug=all -Dnativewindow.debug=all -Djogl.debug=all $* 2>&1 | tee java-dbg.log
-# java -Djogl.debug=all $* 2>&1 | tee java-dbg.log
+CPOK=0
+echo $CLASSPATH | grep jogl && CPOK=1
+if [ $CPOK -eq 0 ] ; then
+ # Only valid for autobuild .. otherwise run manually with build-dir
+ . ./setenv-jogl.sh JOGL_ALL
+ echo $CLASSPATH | grep jogl && CPOK=1
+fi
+if [ $CPOK -eq 0 ] ; then
+ echo No JOGL in CLASSPATH
+else
+ # java -Dgluegen.debug.ProcAddressHelper=true -Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all $* 2>&1 | tee java-dbg.log
+ java -Dnewt.debug=all -Dnativewindow.debug=all -Djogl.debug=all $* 2>&1 | tee java-dbg.log
+ # java -Djogl.debug=all $* 2>&1 | tee java-dbg.log
+fi