summaryrefslogtreecommitdiffstats
path: root/java-dbg-swing.sh
blob: 7c120d5c1f420f91f84f532d1ede5fed661aeab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

CPOK=0
echo $CLASSPATH | grep jogl && CPOK=1

#SWING_PROPS="-Dsun.java2d.noddraw=true -Dsun.java2d.opengl=true"
SWING_PROPS="-Dsun.java2d.noddraw=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