]>
Commit | Line | Data |
---|---|---|
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 | if "%JAVA_HOME%"=="" goto no_jdk\r | |
14 | if "%WORKSPACE%"=="" goto no_wks\r | |
15 | \r | |
16 | if "%1"=="" (goto usage)\r | |
17 | if "%1"=="-h" (goto usage)\r | |
18 | if "%1"=="-H" (goto usage) else (goto all)\r | |
19 | \r | |
20 | :usage\r | |
21 | echo.\r | |
22 | echo Generate SurfaceArea Java Beans from schema\r | |
23 | echo.\r | |
24 | echo Usage: \r | |
25 | echo SABeans.bat SurfaceArea.jar\r | |
26 | echo generate compiled SurfaceArea Java Beans only\r | |
27 | echo.\r | |
28 | echo SABeans.bat SurfaceArea.java\r | |
29 | echo generate source code of SurfaceArea Java Beans only\r | |
30 | echo.\r | |
31 | echo SABeans.bat SurfaceArea\r | |
32 | echo generate both compiled and source code of SurfaceArea Java Beans\r | |
33 | echo.\r | |
34 | goto 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 |