The PatternSet data type defines patterns that can be grouped into sets and nested into FileSets. Patterns can be specified by nested <include> or <exclude> elements.
Table D.5: Attributes for <patternset>
tag
Name | Type | Description | Default | Required |
---|---|---|---|---|
includes | String | Comma- or space-separated list of patterns of files that must be included; all files are included when omitted. | n/a | No |
includesfile | String | The name of a file; each line of this file is taken to be an include pattern. | n/a | No |
excludes | String | comma- or space-separated list of patterns of files that must be excluded; no files (except default excludes) are excluded when omitted. | n/a | No |
excludesfile | String | The name of a file; each line of this file is taken to be an exclude pattern. | n/a | No |
<patternset id="no.tests"> <include name="**/*.php"/> <exclude name="**/*Test*"/> </patternset>
The <patternset>
tag only supports
<include>
and <exclude>
. The
<include>
and the <exclude>
tags
must have a name
attribute that contains the pattern to
include/exclude.