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-jdk14-142.jar;%LIB%\commons-cli\commons-cli-1.2.jar;%LIB%\flyingsaucer\core-renderer-minimal.jar;%LIB%\swingworker\swing-worker-1.2.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.5.jar;%LIB%\junit\abbot.jar |
21 |
java org.junit.runner.JUnitCore nl.nikhef.jgridstart.AllTests |
22 |
goto :end |
23 |
|
24 |
:notest |
25 |
if not "%1"=="cli" goto :nowantcli |
26 |
shift |
27 |
java nl.nikhef.jgridstart.cli.Main $@ |
28 |
goto :end |
29 |
|
30 |
:nowantcli |
31 |
if not "%1"=="gui" goto :nowantgui |
32 |
shift |
33 |
java nl.nikhef.jgridstart.gui.Main $@ |
34 |
goto :end |
35 |
|
36 |
:nowantgui |
37 |
java nl.nikhef.jgridstart.gui.Main $@ |
38 |
goto :end |
39 |
|
40 |
:end |