ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: ant build.xml
Date Mon, 07 Mar 2005 13:42:52 GMT
stevel      2005/03/07 05:42:52

  Modified:    .        build.xml
  Log:
  Excluding XSD tests on systems without an adequate parser.
  
  Revision  Changes    Path
  1.459     +21 -0     ant/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/ant/build.xml,v
  retrieving revision 1.458
  retrieving revision 1.459
  diff -u -r1.458 -r1.459
  --- build.xml	23 Feb 2005 20:11:00 -0000	1.458
  +++ build.xml	7 Mar 2005 13:42:52 -0000	1.459
  @@ -343,6 +343,14 @@
       <exclude unless="run.failing.tests" name="${optional.package}/WsdlToDotnetTest.java"/>
     </patternset>
   
  +  <!--tests that need an XML Schema-supporting parser to work-->
  +  <selector id="needs.xmlschema">
  +    <or>
  +      <filename name="${optional.package}/SchemaValidateTest.*"/>
  +      <filename name="${optional.package}/XmlValidateTest.*"/>
  +    </or>
  +  </selector>
  +
     <!--
          ===================================================================
            Set up a patternsets that matches the parts of our JUnit testsuite
  @@ -599,6 +607,18 @@
         </not>
       </condition>
       <property name="build.compiler" value="modern"/>
  +
  +    <!--check for XSD support in the parser-->
  +    <condition property="xmlschema.present">
  +      <or>
  +        <parsersupports
  +          feature="http://apache.org/xml/features/validation/schema"/>
  +        <parsersupports
  +          feature="http://java.sun.com/xml/jaxp/properties/schemaSource"/>
  +      </or>
  +    </condition>
  +
  +
     </target>
   
   
  @@ -681,6 +701,7 @@
               <selector refid="needs.jdepend" unless="jdepend.present"/>
               <selector refid="needs.swing"  unless="swing.present"/>
               <selector refid="needs.jsch" unless="jsch.present"/>
  +            <selector refid="needs.xmlschema" unless="xmlschema.present"/>
             </or>
           </not>
         </selector>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message