The <contains>
tag selects files that contain the string
specified by the text
attribute.
<fileset dir="${src}" includes="**/*.php"> <contains text="PHP"/> </fileset>
Table 202. Attributes for the <contains>
selector
Name | Description | Default | Required |
---|---|---|---|
text |
Specifies the text that every file must contain | n/a | Yes |
casesensitive |
Whether to pay attention to case when looking for the string in the text attribute. | true |
No |