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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 376 - (show annotations) (download) (as text)
Tue Jun 2 14:00:40 2009 UTC (12 years, 6 months ago) by wvengen
File MIME type: application/x-shellscript
File size: 1056 byte(s)
add swingworker to default classpath
1 #!/bin/sh
2 JAVA=java1.5
3 BASE=`dirname $0`
4 LIB="$BASE/thirdparty"
5 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 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 $JAVA org.junit.runner.JUnitCore nl.nikhef.jgridstart.AllTests
21 elif [ "$1" = "cli" ]; then
22 shift
23 $JAVA nl.nikhef.jgridstart.cli.Main $@
24 elif [ "$1" = "gui" ]; then
25 shift
26 $JAVA nl.nikhef.jgridstart.gui.Main $@
27 elif [ "$DISPLAY" ]; then
28 $JAVA nl.nikhef.jgridstart.gui.Main $@
29 else
30 $JAVA nl.nikhef.jgridstart.cli.Main $@
31 fi

Properties

Name Value
svn:executable *

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