ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# D.6 PatternSet The PatternSet data type defines patterns that can be grouped into sets and nested into [FileSets](apds04.html "D.4 FileSet"). Patterns can be specified by nested <include> or <exclude> elements. Table D.5:聽 Attributes for `<patternset>` tag NameTypeDescriptionDefaultRequired`includes``String`Comma- or space-separated list of patterns of files that must be included; all files are included when omitted.n/aNo`includesfile``String`The name of a file; each line of this file is taken to be an include pattern.n/aNo`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/aNo`excludesfile``String`The 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](apds04.html#patterns "D.4.1 Using wildcards") to include/exclude.