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">
    <contains text="project" casesensitive="false"/>
    <contains text="taskdef" casesensitive="false"/>
    <contains text="BaseSelector" casesensitive="true"/>

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

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