or condition with containsregexp : Condition « Ant « Java Tutorial






<?xml version="1.0"?>
<project name="Apache Ant Properties Project" basedir=".">
  <fileset id="javadoc" dir="${src}">
    <include name="shared/**"/>
    <include name="stand-alone/**"/>
    <include name="web/java/**"/>
    <or>
      <containsregexp expression="Licensed under the Apache Licen[sc]e"/>
      <containsregexp expression="GNU GENERAL PUBLIC LICEN[SC]E"/>
    </or>
  </fileset>
</project>








38.8.Condition
38.8.1.Check condition
38.8.2.Compile if upto date
38.8.3.Condition properties
38.8.4.or condition with containsregexp
38.8.5.and condition in fileset