mirror of https://github.com/acidanthera/audk.git
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"/>
|
||||
<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"/>
|
||||
<if>
|
||||
<contains string="${XMLBEANS_OUTPUT}" substring="NOT valid"/>
|
||||
<then>
|
||||
<fail message="Result ... ${XMLBEANS_OUTPUT}"/>
|
||||
</then>
|
||||
<else>
|
||||
<echo message="Result ... ${XMLBEANS_OUTPUT}"/>
|
||||
</else>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<!--
|
||||
|
|
Loading…
Reference in New Issue