G.6 Filename

The <filename> tag acts like the <include> and <exclude> tags within a fileset. By using a selector instead, however, one can combine it with all the other selectors using whatever selector container is desired.

<fileset dir="${src}" includes="**/*">
  <filename name="**/*.php">
</fileset>

Table G.6:  Attributes for the <filename> selector

NameDescriptionDefaultRequired
nameThe name of files to select. The name parameter can contain the standard Phing wildcard characters.n/aExactly one of the two
regexThe regular expression matching files to select.n/a
casesensitiveWhether to pay attention to case when looking at file names.trueNo
negateWhether to reverse the effects of this filename selection, therefore emulating an exclude rather than include tag.falseNo