diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-26 08:24:17 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-26 08:24:17 +0000 |
commit | 6c96db71202f290070ef50a24266b019a562634d (patch) | |
tree | a68696843ac6c46f5b4ef23142d89ed1980fdf47 | |
parent | 238094c40ef1d351b383d99efa77314987234160 (diff) | |
download | edk2-platforms-6c96db71202f290070ef50a24266b019a562634d.tar.xz |
Added code to fail the SAVerify command when validation failed
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1099 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Tools/Source/SurfaceArea/build.xml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Tools/Source/SurfaceArea/build.xml b/Tools/Source/SurfaceArea/build.xml index 703673ba16..7e6368386f 100644 --- a/Tools/Source/SurfaceArea/build.xml +++ b/Tools/Source/SurfaceArea/build.xml @@ -100,7 +100,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -->
<copy file="${SURFACE_AREA_FILE}" tofile="${SURFACE_AREA_FILE}.xml"/>
<java classname="org.apache.xmlbeans.impl.tool.InstanceValidator"
- outputproperty="XMLBEANS_OUTPUT" >
+ outputproperty="XMLBEANS_OUTPUT"
+ resultproperty="XMLBEANS_RESULT"
+ errorproperty="XMLBEANS_ERROR">
<classpath refid="classpath"/>
<arg value="-dl"/>
@@ -110,7 +112,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </java>
<delete file="${SURFACE_AREA_FILE}.xml" quiet="true"/>
- <echo message="Result ... ${XMLBEANS_OUTPUT}"/>
+ <if>
+ <contains string="${XMLBEANS_OUTPUT}" substring="NOT valid"/>
+ <then>
+ <fail message="Result ... ${XMLBEANS_OUTPUT}"/>
+ </then>
+ <else>
+ <echo message="Result ... ${XMLBEANS_OUTPUT}"/>
+ </else>
+ </if>
</target>
<!--
|