forked from zkoss/ztltest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
generator.bat
29 lines (27 loc) · 869 Bytes
/
generator.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 Zul Testing Language Generator
rem
rem Date : 2010/03/09
rem
rem Author : jumperchen
rem
rem Copyright (c) 2010 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 generate
:end
cd %CURRENT_DIR%