Initial import.
[mirror_edk2.git] / Tools / bin / PackageEditor.bat
CommitLineData
878ddf1f 1@REM\r
2@REM Copyright (c) 2006, Intel Corporation\r
3@REM All rights reserved. This program and the accompanying materials\r
4@REM are licensed and made available under the terms and conditions of the BSD License\r
5@REM which accompanies this distribution. The full text of the license may be found at\r
6@REM http://opensource.org/licenses/bsd-license.php\r
7@REM \r
8@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
9@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
10@REM\r
11\r
12@echo off\r
13\r
14:check_java\r
15if "%JAVA_HOME%"=="" goto no_jdk\r
16:check_wks\r
17if "%WORKSPACE%"=="" goto no_wks\r
18\r
19set ANT_HOME=%WORKSPACE%\Tools\bin\apache-ant\r
20set XMLBEANS_HOME=%WORKSPACE%\Tools\bin\xmlbeans\r
21set Framework_Tools_Path=%WORKSPACE%\Tools\bin\r
22\r
23set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATH%\r
24\r
25set CLASSPATH=%WORKSPACE%\Tools\Jars\SurfaceArea.jar;%WORKSPACE%\Tools\Jars\GenBuild.jar;%WORKSPACE%\Tools\Jars\cpptasks.jar;%WORKSPACE%\Tools\Jars\frameworktasks.jar;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar;%XMLBEANS_HOME%\lib\xbean.jar;%XMLBEANS_HOME%\lib\xbean_xpath.jar;%XMLBEANS_HOME%\lib\xmlpublic.jar;%XMLBEANS_HOME%\lib\saxon8.jar;%XMLBEANS_HOME%\lib\saxon8-jdom.jar;%XMLBEANS_HOME%\lib\saxon8-sql.jar;%XMLBEANS_HOME%\lib\resolver.jar\r
26\r
27call "ant" -f %WORKSPACE%\Tools\Source\PackageEditor\build.xml\r
28\r
29call "java" -jar %WORKSPACE%\Tools\bin\PackageEditor.jar\r
30\r
31goto end\r
32\r
33:no_jdk\r
34echo.\r
35echo !!! Please set JAVA_HOME !!!\r
36echo.\r
37goto check_wks\r
38\r
39:no_wks\r
40echo.\r
41echo !!! Please set WORKSPACE !!!\r
42echo.\r
43goto end\r
44\r
45:end\r
46@echo on\r
47\r