summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-28 06:33:01 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-28 06:33:01 +0000
commit27169a56e67556796ab0410c8917436dc9aa2abf (patch)
tree9fce23fea7f05f0e89204b331caa3e2242f770ac /Tools
parent57d0e52a7180d3f3416388023f0edae9bb97f6ce (diff)
downloadedk2-platforms-27169a56e67556796ab0410c8917436dc9aa2abf.tar.xz
Added more error check on validation to let result be more exact.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1138 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Source/SurfaceArea/build.xml13
1 files changed, 9 insertions, 4 deletions
diff --git a/Tools/Source/SurfaceArea/build.xml b/Tools/Source/SurfaceArea/build.xml
index 7e6368386f..f6e512b5a1 100644
--- a/Tools/Source/SurfaceArea/build.xml
+++ b/Tools/Source/SurfaceArea/build.xml
@@ -101,7 +101,6 @@ 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"
- resultproperty="XMLBEANS_RESULT"
errorproperty="XMLBEANS_ERROR">
<classpath refid="classpath"/>
@@ -113,12 +112,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<delete file="${SURFACE_AREA_FILE}.xml" quiet="true"/>
<if>
- <contains string="${XMLBEANS_OUTPUT}" substring="NOT valid"/>
+ <or>
+ <contains string="${XMLBEANS_OUTPUT}" substring="NOT valid"/>
+ <contains string="${XMLBEANS_OUTPUT}" substring=": error:"/>
+ <contains string="${XMLBEANS_ERROR}" substring="XmlException"/>
+ <contains string="${XMLBEANS_ERROR}" substring=": error:"/>
+ </or>
<then>
- <fail message="Result ... ${XMLBEANS_OUTPUT}"/>
+ <echo message="Result ... ${XMLBEANS_OUTPUT}&#x0d;&#x0a;${XMLBEANS_ERROR}"/>
+ <fail message="${SURFACE_AREA_FILE} is invalid!"/>
</then>
<else>
- <echo message="Result ... ${XMLBEANS_OUTPUT}"/>
+ <echo message="Result ... ${SURFACE_AREA_FILE} is valid"/>
</else>
</if>
</target>