/[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 1622 - (show annotations) (download) (as text)
Tue Apr 13 08:08:16 2010 UTC (11 years, 9 months ago) by wvengen
File MIME type: application/x-shellscript
File size: 1642 byte(s)
use JAVA_HOME for locating java in shellscripts
1 #!/bin/sh
2 if [ "$JAVA_HOME" ]; then
3 JAVA="$JAVA_HOME/bin/java"
4 else
5 JAVA=java
6 fi
7 BASE=`dirname $0`
8 LIB="$BASE/thirdparty"
9 CLASSPATH="$LIB/bouncycastle/bcprov-jdk15-144.jar:$LIB/bouncycastle/bcmail-jdk15-144.jar:$LIB/bouncycastle/mail-1.4.3.jar:$LIB/commons/commons-lang-2.4.jar:$LIB/commons/commons-cli-1.2.jar:$LIB/flyingsaucer/core-renderer-minimal.jar:$LIB/flyingsaucer/iText-2.0.8.jar:$LIB/swingworker/swing-worker-1.2.jar:$BASE/bin"
10 INVOKED_PROGRAM="$0"
11 export BASE CLASSPATH INVOKED_PROGRAM
12
13 # undocumented behaviour: first parameter can be "test" to run unit tests,
14 # "cli" to force the command-line version, or "gui" to force the gui version
15 # to be run.
16 # By default, the gui version will be run when DISPLAY is set, or else the
17 # command-line version.
18 if [ "$1" = "test" ]; then
19 echo
20 echo "Running jGridstart tests"
21 echo
22 CLASSPATH="$CLASSPATH:$LIB/junit/junit-4.7.jar:$LIB/junit/abbot.jar"
23 export CLASSPATH
24 #$JAVA org.junit.runner.JUnitCore nl.nikhef.jgridstart.AllTests
25 $JAVA nl.nikhef.jgridstart.logging.UserTestRunner
26 elif [ "$1" = "cli" ]; then
27 shift
28 $JAVA nl.nikhef.jgridstart.cli.Main $@
29 elif [ "$1" = "gui" ]; then
30 shift
31 $JAVA nl.nikhef.jgridstart.gui.Main $@
32 elif [ "$1" = "check" ]; then
33 INVOKED_PROGRAM="$INVOKED_PROGRAM $1"
34 export INVOKED_PROGRAM
35 shift
36 $JAVA nl.nikhef.jgridstart.CertificateCheck $@
37 elif [ "$1" = "screenshots" ]; then
38 shift
39 CLASSPATH="$CLASSPATH:$LIB/junit/junit-4.7.jar:$LIB/junit/abbot.jar"
40 export CLASSPATH
41 $JAVA nl.nikhef.jgridstart.gui.util.GUIScreenshotsTest $@
42 elif [ "$DISPLAY" ]; then
43 $JAVA nl.nikhef.jgridstart.gui.Main $@
44 else
45 $JAVA nl.nikhef.jgridstart.cli.Main $@
46 fi

Properties

Name Value
svn:executable *

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