Initial import.
[mirror_edk2.git] / Start Create Setup Package.bat
CommitLineData
878ddf1f 1@REM set following environment in this file or in command shell\r
2@REM set JAVA_HOME="C:\Program Files\Java\jdk1.5.0_04"\r
3@REM set WORKSPACE=C:\MyWorkspace\r
4\r
5\r
6@REM ##############################################################\r
7@REM # You should not have to modify anything below this line\r
8@REM #\r
9\r
10@echo off\r
11\r
12:check_java\r
13if "%JAVA_HOME%"=="" goto no_jdk\r
14:check_wks\r
15if "%WORKSPACE%"=="" goto no_wks\r
16\r
17set ANT_HOME=%WORKSPACE%\Tools\bin\apache-ant\r
18set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATH%\r
19\r
20call "ant" -f %WORKSPACE%\Tools\Source\Setup\build.xml\r
21\r
22echo DONE\r
23\r
24goto end\r
25\r
26:no_jdk\r
27echo.\r
28echo !!! Please set JAVA_HOME !!!\r
29echo.\r
30goto check_wks\r
31\r
32:no_wks\r
33echo.\r
34echo !!! Please set WORKSPACE !!!\r
35echo.\r
36goto end\r
37\r
38:end\r
39@echo on\r
40\r