1 |
@echo off |
2 |
REM |
3 |
REM Batch file for running jGridstart |
4 |
REM |
5 |
|
6 |
set BASE=%~dp0 |
7 |
set LIB=%BASE%\thirdparty |
8 |
set CLASSPATH=%LIB%\bouncycastle\bcprov-jdk15-144.jar;%LIB%\bouncycastle\bcmail-jdk15-144.jar;%LIB%\bouncycastle\mail-1.4.3.jar;%LIB%\commons\commons-cli-1.2.jar;%LIB%\commons\commons-lang-2.4.jar;%LIB%\flyingsaucer\core-renderer-minimal.jar;%LIB%\flyingsaucer\iText-2.0.8.jar;%LIB%\swingworker\swing-worker-1.2.jar;%LIB%\winregistry\WinRegistry-3.4.jar;%BASE%\bin |
9 |
set INVOKED_PROGRAM=%0 |
10 |
|
11 |
REM undocumented behaviour: first parameter can be "test" to run unit tests, |
12 |
REM "cli" to force the command-line version, or "gui" to force the gui version |
13 |
REM to be run. |
14 |
REM By default, the gui version will be run. |
15 |
|
16 |
if not "%1"=="test" goto :notest |
17 |
echo. |
18 |
echo Running jGridstart tests |
19 |
echo. |
20 |
set CLASSPATH=%CLASSPATH%;%LIB%\junit\junit-4.7.jar;%LIB%\junit\abbot.jar |
21 |
rem java org.junit.runner.JUnitCore nl.nikhef.jgridstart.AllTests |
22 |
java nl.nikhef.jgridstart.logging.UserTestRunner |
23 |
goto :end |
24 |
|
25 |
:notest |
26 |
if not "%1"=="cli" goto :nowantcli |
27 |
shift |
28 |
java nl.nikhef.jgridstart.cli.Main %1 %2 %3 %4 %5 %6 %7 %8 %9 |
29 |
goto :end |
30 |
|
31 |
:nowantcli |
32 |
if not "%1"=="gui" goto :nowantgui |
33 |
shift |
34 |
java nl.nikhef.jgridstart.gui.Main %1 %2 %3 %4 %5 %6 %7 %8 %9 |
35 |
goto :end |
36 |
|
37 |
:nowantgui |
38 |
if not "%1"=="check" goto :nowantcheck |
39 |
shift |
40 |
java nl.nikhef.jgridstart.CertificateCheck %1 %2 %3 %4 %5 %6 %7 %8 %9 |
41 |
goto :end |
42 |
|
43 |
:nowantcheck |
44 |
if not "%1"=="screenshots" goto :nowantscreenshots |
45 |
shift |
46 |
set CLASSPATH=%CLASSPATH%;%LIB%\junit\junit-4.7.jar;%LIB%\junit\abbot.jar |
47 |
java nl.nikhef.jgridstart.gui.util.GUIScreenshotsTest %1 %2 %3 %4 %5 %6 %7 %8 %9 |
48 |
goto :end |
49 |
|
50 |
:nowantscreenshots |
51 |
java nl.nikhef.jgridstart.gui.Main %1 %2 %3 %4 %5 %6 %7 %8 %9 |
52 |
goto :end |
53 |
|
54 |
:end |