]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/bin/dbtool.bat
BDS code calls Hii->FindHandles() with hardcoded length.
[mirror_edk2.git] / Tools / bin / dbtool.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 off
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 :check_surfacearea
23 if not exist %WORKSPACE%\Tools\Jars\SurfaceArea.jar (
24 goto no_surfacearea
25 )
26 :check_DbTools
27 if not exist %WORKSPACE%\Tools\Jars\DbTools.jar (
28 goto no_DbTools
29 )
30
31 @REM Run Framework Wizard
32 call "java" -cp "%WORKSPACE%\Tools\Jars\DbTools.jar" org.tianocore.DbTools.DbTool %*
33
34 goto end
35
36 :no_jdk
37 @echo.
38 @echo !!! Please set JAVA_HOME !!!
39 @echo.
40 goto check_wks
41
42 :no_wks
43 @echo.
44 @echo !!! Please set WORKSPACE !!!
45 @echo.
46 goto check_ant
47
48 :no_ant
49 @echo.
50 @echo !!! Please set ANT_HOME !!!
51 @echo.
52 goto check_xmlbeans
53
54 :no_xmlbeans
55 @echo.
56 @echo !!! Please set XMLBEANS_HOME !!!
57 @echo.
58 goto end
59
60 :no_surfacearea
61 @echo.
62 @echo !!! Please run edksetup.bat to build SurfaceArea.jar !!!
63 @echo.
64 goto end
65
66 :no_DbTools
67 @echo.
68 @echo !!! Please run edksetup.bat to build DbTools.jar !!!
69 @echo.
70 goto end
71
72 :end
73 @echo on