]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/bin/FrameworkWizard.bat
Convert to unix format.
[mirror_edk2.git] / Tools / bin / FrameworkWizard.bat
1 @REM
2 @REM Copyright (c) 2006, Intel Corporation
3 @REM All rights reserved. This program and the accompanying materials
4 @REM are licensed and made available under the terms and conditions of the BSD License
5 @REM which accompanies this distribution. The full text of the license may be found at
6 @REM http://opensource.org/licenses/bsd-license.php
7 @REM
8 @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
10 @REM
11
12 @echo on
13
14 :check_java
15 if "%JAVA_HOME%"=="" goto no_jdk
16 :check_wks
17 if "%WORKSPACE%"=="" goto no_wks
18 :check_ant
19 if "%ANT_HOME%"=="" goto no_ant
20 :check_xmlbeans
21 if "%XMLBEANS_HOME%"=="" goto no_xmlbeans
22
23 set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATH%
24
25 set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\SurfaceArea.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\resolver.jar;%WORKSPACE%\Tools\bin\FrameworkWizard.jar;.
26
27 @REM Build SurfaceArea first
28 call "ant" -f %WORKSPACE%\Tools\build.xml SurfaceArea
29
30 @REM Build Framework Wizard
31 call "ant" -f %WORKSPACE%\Tools\Source\FrameworkWizard\build.xml
32
33 @REM Run Framework Wizard
34 call "java" org.tianocore.frameworkwizard.FrameworkWizardUI
35
36 goto end
37
38 :no_jdk
39 echo.
40 echo !!! Please set JAVA_HOME !!!
41 echo.
42 goto check_wks
43
44 :no_wks
45 echo.
46 echo !!! Please set WORKSPACE !!!
47 echo.
48 goto check_ant
49
50 :no_ant
51 echo.
52 echo !!! Please set ANT_HOME !!!
53 echo.
54 goto check_xmlbeans
55
56 :no_xmlbeans
57 echo.
58 echo !!! Please set XMLBEANS_HOME !!!
59 echo.
60 goto end
61
62 :end
63 @echo on
64