D.6 PatternSet

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

NameTypeDescriptionDefaultRequired
includesStringComma- or space-separated list of patterns of files that must be included; all files are included when omitted.n/aNo
includesfileStringThe name of a file; each line of this file is taken to be an include pattern.n/aNo
excludesStringcomma- or space-separated list of patterns of files that must be excluded; no files (except default excludes) are excluded when omitted.n/aNo
excludesfileStringThe name of a file; each line of this file is taken to be an exclude pattern.n/aNo

D.6.1 Usage Example

<patternset id="no.tests">
  <include name="**/*.php"/>
  <exclude name="**/*Test*"/>
</patternset>

D.6.2 Nested tags

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.