G.12 Majority

The <majority> tag selects files provided that a majority of the contained elements also select it. Ties are dealt with as specified by the allowtie attribute.

<fileset dir="${src}" includes="**/*.php">
  <majority>
    <contains text="project" casesensitive="false"/>
    <contains text="taskdef" casesensitive="false"/>
    <contains text="BaseSelector" casesensitive="true"/>
  </majority>
</fileset>

Table G.12:  Attributes for the <majority> selector container

NameDescriptionDefaultRequired
allowtieWhether files should be selected if there are an even number of selectors selecting them as are not selecting them.trueNo