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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 367 by wvengen, Thu May 7 10:40:26 2009 UTC revision 368 by wvengen, Tue Jun 2 08:51:34 2009 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  export BASE=`dirname $0`  BASE=`dirname $0`
3  export LIB="$BASE/thirdparty"  LIB="$BASE/thirdparty"
4  export CLASSPATH="$LIB/bouncycastle/bcprov-jdk14-142.jar:$LIB/commons-cli/commons-cli-1.2.jar:$LIB/flyingsaucer/core-renderer-minimal.jar:$BASE/bin"  CLASSPATH="$LIB/bouncycastle/bcprov-jdk14-142.jar:$LIB/commons-cli/commons-cli-1.2.jar:$LIB/flyingsaucer/core-renderer-minimal.jar:$BASE/bin"
5  export INVOKED_PROGRAM="$0"  INVOKED_PROGRAM="$0"
6  if [ "$DISPLAY" ]; then  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 $@          java nl.nikhef.jgridstart.gui.Main $@
28  else  else
29          java nl.nikhef.jgridstart.cli.Main $@          java nl.nikhef.jgridstart.cli.Main $@

Legend:
Removed from v.367  
changed lines
  Added in v.368

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