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