Changed FvBinding to be a list of Keywords (not using list, just specifying the patte...
[mirror_edk2.git] / Tools / bin / SABeans.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 if "%JAVA_HOME%"=="" goto no_jdk
14 if "%WORKSPACE%"=="" goto no_wks
15
16 if "%1"=="" (goto usage)
17 if "%1"=="-h" (goto usage)
18 if "%1"=="-H" (goto usage) else (goto all)
19
20 :usage
21 echo.
22 echo Generate SurfaceArea Java Beans from schema
23 echo.
24 echo Usage:
25 echo SABeans.bat SurfaceArea.jar
26 echo generate compiled SurfaceArea Java Beans only
27 echo.
28 echo SABeans.bat SurfaceArea.java
29 echo generate source code of SurfaceArea Java Beans only
30 echo.
31 echo SABeans.bat SurfaceArea
32 echo generate both compiled and source code of SurfaceArea Java Beans
33 echo.
34 goto end
35
36 :all
37 ant -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml %1
38 goto end
39
40 :no_jdk
41 echo.
42 echo !!! Please set JAVA_HOME !!!
43 echo.
44 goto end
45
46 :no_wks
47 echo.
48 echo !!! Please set WORKSPACE !!!
49 echo.
50 goto end
51
52 :end
53 @echo on
54