/[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 1622 - (hide 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 wvengen 178 #!/bin/sh
2 wvengen 1622 if [ "$JAVA_HOME" ]; then
3     JAVA="$JAVA_HOME/bin/java"
4     else
5     JAVA=java
6     fi
7 wvengen 368 BASE=`dirname $0`
8     LIB="$BASE/thirdparty"
9 wvengen 1607 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 wvengen 368 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 wvengen 1005 CLASSPATH="$CLASSPATH:$LIB/junit/junit-4.7.jar:$LIB/junit/abbot.jar"
23 wvengen 368 export CLASSPATH
24 wvengen 985 #$JAVA org.junit.runner.JUnitCore nl.nikhef.jgridstart.AllTests
25 wvengen 1006 $JAVA nl.nikhef.jgridstart.logging.UserTestRunner
26 wvengen 368 elif [ "$1" = "cli" ]; then
27     shift
28 wvengen 376 $JAVA nl.nikhef.jgridstart.cli.Main $@
29 wvengen 368 elif [ "$1" = "gui" ]; then
30     shift
31 wvengen 376 $JAVA nl.nikhef.jgridstart.gui.Main $@
32 wvengen 505 elif [ "$1" = "check" ]; then
33     INVOKED_PROGRAM="$INVOKED_PROGRAM $1"
34     export INVOKED_PROGRAM
35     shift
36     $JAVA nl.nikhef.jgridstart.CertificateCheck $@
37 wvengen 1338 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 wvengen 368 elif [ "$DISPLAY" ]; then
43 wvengen 376 $JAVA nl.nikhef.jgridstart.gui.Main $@
44 wvengen 178 else
45 wvengen 376 $JAVA nl.nikhef.jgridstart.cli.Main $@
46 wvengen 178 fi

Properties

Name Value
svn:executable *

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