/[pdpsoft]/branches/nl.nikhef.jgridstart-flyingsaucer/nl.nikhef.jgridstart/jgridstart.sh
ViewVC logotype

Annotation of /branches/nl.nikhef.jgridstart-flyingsaucer/nl.nikhef.jgridstart/jgridstart.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 376 - (hide annotations) (download) (as text)
Tue Jun 2 14:00:40 2009 UTC (12 years, 7 months ago) by wvengen
File MIME type: application/x-shellscript
File size: 1056 byte(s)
add swingworker to default classpath
1 wvengen 178 #!/bin/sh
2 wvengen 376 JAVA=java1.5
3 wvengen 368 BASE=`dirname $0`
4     LIB="$BASE/thirdparty"
5 wvengen 376 CLASSPATH="$LIB/bouncycastle/bcprov-jdk14-142.jar:$LIB/commons-cli/commons-cli-1.2.jar:$LIB/flyingsaucer/core-renderer-minimal.jar:$LIB/swingworker/swing-worker-1.2.jar:$BASE/bin"
6 wvengen 368 INVOKED_PROGRAM="$0"
7     export BASE CLASSPATH INVOKED_PROGRAM
8    
9     # undocumented behaviour: first parameter can be "test" to run unit tests,
10     # "cli" to force the command-line version, or "gui" to force the gui version
11     # to be run.
12     # By default, the gui version will be run when DISPLAY is set, or else the
13     # command-line version.
14     if [ "$1" = "test" ]; then
15     echo
16     echo "Running jGridstart tests"
17     echo
18     CLASSPATH="$CLASSPATH:$LIB/junit/junit-4.5.jar:$LIB/junit/abbot.jar"
19     export CLASSPATH
20 wvengen 376 $JAVA org.junit.runner.JUnitCore nl.nikhef.jgridstart.AllTests
21 wvengen 368 elif [ "$1" = "cli" ]; then
22     shift
23 wvengen 376 $JAVA nl.nikhef.jgridstart.cli.Main $@
24 wvengen 368 elif [ "$1" = "gui" ]; then
25     shift
26 wvengen 376 $JAVA nl.nikhef.jgridstart.gui.Main $@
27 wvengen 368 elif [ "$DISPLAY" ]; then
28 wvengen 376 $JAVA nl.nikhef.jgridstart.gui.Main $@
29 wvengen 178 else
30 wvengen 376 $JAVA nl.nikhef.jgridstart.cli.Main $@
31 wvengen 178 fi

Properties

Name Value
svn:executable *

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28