diff options
author | Sven Gothel <[email protected]> | 2010-04-15 03:46:16 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-15 03:46:16 +0200 |
commit | 4ff184fd14376241b5a28b3a93f84a849d33f002 (patch) | |
tree | 10bf9a19fcded63b0132ec9e626a986595985464 /java-dbg-swing.sh | |
parent | aa2f05ff1ab182fdb6f724a6aedf91de201efe7e (diff) |
Fixes to match JOGL 2ae28d54858ff684bc2368e0476a7a357dc63432
Diffstat (limited to 'java-dbg-swing.sh')
-rw-r--r-- | java-dbg-swing.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/java-dbg-swing.sh b/java-dbg-swing.sh new file mode 100644 index 0000000..afebefa --- /dev/null +++ b/java-dbg-swing.sh @@ -0,0 +1,20 @@ +#! /bin/sh + +CPOK=0 +echo $CLASSPATH | grep jogl && CPOK=1 + +#SWING_PROPS="-Dsun.java2d.noddraw=true -Dsun.java2d.opengl=true" +#SWING_PROPS_DBG="-Djnlp.jogl.debug.GLJPanel=true" +SWING_PROPS_DBG="-Dnewt.debug=all -Dnativewindow.debug=all -Djogl.debug=all" + +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 $SWING_PROPS $SWING_PROPS_DBG $* 2>&1 | tee java-dbg-swing.log +fi + |