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
This commit is contained in:
jwang36 2006-07-26 08:24:17 +00:00
parent 238094c40e
commit 6c96db7120
1 changed files with 12 additions and 2 deletions

View File

@ -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>
<!--