forked from zkoss/ztltest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runProject.bat
29 lines (27 loc) · 909 Bytes
/
runProject.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem ZK Test Project Runner
rem
rem Date : 2009/03/18
rem
rem Author : Ryan Wu
rem
rem Copyright (c) 2009 Potix Corporation. All rights reserved.
rem ---------------------------------------------------------------------------
set CURRENT_DIR=%cd%
if not exist "%JAVA_HOME%\jre\bin\server\jvm.dll" goto noJDK
if not exist "%ANT_HOME%\lib\ant-junit.jar" goto noAnt
goto run
:noJDK
echo ^> [Error] Cannot found enviroument attribute : JAVA_HOME
echo Must point at your Java Development Kit installation.
goto end
:noAnt
echo ^> [Error] Cannot found enviroument attribute : ANT_HOME
echo Must point at your Java Development Kit installation.
goto end
:run
@cmd /K ant junit report -Dwebdriver.chrome.driver=lib/chromedriver.exe
:end
cd %CURRENT_DIR%