D.4 PatternSet
Prev | Appendix D. Core Types | Next

## D.4 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.4: 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

### D.4.1 Usage Example

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

### D.4.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.

Prev | Up | Next
D.3 FileSet | Home | D.5 Path / Classpath