The <not> tag reverses the meaning of the single selector it contains.
<not>
<fileset dir="${src}" includes="**/*.php"> <not> <contains text="Phing"/> </not> </fileset>