mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
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:
parent
238094c40e
commit
6c96db7120
@ -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"/>
|
<copy file="${SURFACE_AREA_FILE}" tofile="${SURFACE_AREA_FILE}.xml"/>
|
||||||
<java classname="org.apache.xmlbeans.impl.tool.InstanceValidator"
|
<java classname="org.apache.xmlbeans.impl.tool.InstanceValidator"
|
||||||
outputproperty="XMLBEANS_OUTPUT" >
|
outputproperty="XMLBEANS_OUTPUT"
|
||||||
|
resultproperty="XMLBEANS_RESULT"
|
||||||
|
errorproperty="XMLBEANS_ERROR">
|
||||||
|
|
||||||
<classpath refid="classpath"/>
|
<classpath refid="classpath"/>
|
||||||
<arg value="-dl"/>
|
<arg value="-dl"/>
|
||||||
@ -110,7 +112,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</java>
|
</java>
|
||||||
|
|
||||||
<delete file="${SURFACE_AREA_FILE}.xml" quiet="true"/>
|
<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>
|
</target>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
Loading…
x
Reference in New Issue
Block a user