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

Properties

Name Value
svn:executable *

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