Updated MSA by putting Specification element at the end of the header section
[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
2bdb1907 16\r
878ddf1f 17:check_wks\r
18if "%WORKSPACE%"=="" goto no_wks\r
19\r
2bdb1907 20:check_ant\r
21if "%ANT_HOME%"=="" goto no_ant\r
22@REM set ANT_HOME=%WORKSPACE%\Tools\bin\apache-ant\r
23\r
24:check_xmlbeans\r
25if "%XMLBEANS_HOME"=="" goto no_xmlbeans\r
26@REM set XMLBEANS_HOME=%WORKSPACE%\Tools\bin\xmlbeans\r
27\r
878ddf1f 28set Framework_Tools_Path=%WORKSPACE%\Tools\bin\r
29\r
de935f14 30set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATH%\r
878ddf1f 31\r
2bdb1907 32set CLASSPATH=%WORKSPACE%\Tools\Jars\SurfaceArea.jar;%WORKSPACE%\Tools\Jars\GenBuild.jar\r
33set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\cpptasks.jar;%WORKSPACE%\Tools\Jars\frameworktasks.jar\r
34set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar;%XMLBEANS_HOME%\lib\xbean.jar\r
35set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\xbean_xpath.jar;%XMLBEANS_HOME%\lib\xmlpublic.jar\r
36set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\saxon8.jar;%XMLBEANS_HOME%\lib\saxon8-jdom.jar\r
37set CLASSPATH=%CLASSPATH%;%XMLBEANS_HOME%\lib\saxon8-sql.jar;%XMLBEANS_HOME%\lib\resolver.jar\r
de935f14 38set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\bin\PackageEditor.jar\r
878ddf1f 39\r
40call "ant" -f %WORKSPACE%\Tools\Source\PackageEditor\build.xml\r
41\r
de935f14 42call "java" org.tianocore.packaging.PackagingMain\r
878ddf1f 43\r
44goto end\r
45\r
46:no_jdk\r
47echo.\r
48echo !!! Please set JAVA_HOME !!!\r
49echo.\r
50goto check_wks\r
51\r
52:no_wks\r
53echo.\r
54echo !!! Please set WORKSPACE !!!\r
55echo.\r
2bdb1907 56goto check_ant\r
57\r
58:no_ant\r
59echo.\r
60echo !!! Please set ANT_HOME !!!\r
61echo.\r
62goto check_xmlbeans\r
63\r
64:no_xmlbeans\r
65echo.\r
66echo !!! Please set XMLBEANS_HOME !!!\r
67echo.\r
878ddf1f 68goto end\r
69\r
70:end\r
71@echo on\r
72\r