]>
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 | @if "%JAVA_HOME%"=="" goto no_jdk\r | |
13 | @if "%WORKSPACE%"=="" goto no_wks\r | |
14 | \r | |
15 | @if "%1"=="" goto usage\r | |
16 | @if "%1"=="-H" (goto usage)\r | |
17 | @if "%1"=="-h" (goto usage) else (goto all)\r | |
18 | \r | |
19 | :usage\r | |
20 | @echo off\r | |
21 | @echo.\r | |
22 | @echo Beautify XML file format\r | |
23 | @echo.\r | |
24 | @echo Usage: SAPretty.bat "XML_FILE" \r | |
25 | @echo.\r | |
26 | goto end\r | |
27 | \r | |
28 | :all\r | |
29 | @ant -q -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml pretty -DSURFACE_AREA_FILE=%~f1\r | |
30 | @goto end\r | |
31 | \r | |
32 | :no_jdk\r | |
33 | @echo.\r | |
34 | @echo !!! Please set JAVA_HOME !!!\r | |
35 | @echo.\r | |
36 | @goto end\r | |
37 | \r | |
38 | :no_wks\r | |
39 | @echo.\r | |
40 | @echo !!! Please set WORKSPACE !!!\r | |
41 | @echo.\r | |
42 | @goto end\r | |
43 | \r | |
44 | :end\r | |
45 | \r |