...
Describes a pattern to match when qualifying paths from a listing operation. Follows the Ant pattern conventions:
* = any character up to the first slashpath-separator
** = all characters, including slashespath-separators
Attributes
NAME | TYPE | DEFAULT VALUE | DESCRIPTION | ||
---|---|---|---|---|---|
base |
| name |
| (required) | the base URI for the listing; if there are includes or excludes, this should be a directory; see further supported schemes |
defaultexcludes |
|
| use the default exclude patterns (see below) | ||
caseSensitive |
|
| matching should observe casecomment |
Elements
TAG | TYPE | COUNT | DESCRIPTION |
---|---|---|---|
|
| 0:1 | comment |
ReturnValues
DEFAULT NAME | TYPE |
---|---|
name |
|
|
| 0:N | if path matches this pattern, include it |
|
| 0:N | if path matches this pattern, exclude it |
|
| 0:1 | list of patterns for inclusion (usually not used; multiple |
|
| 0:1 | list of patterns for exclusion (usually not used; multiple |
NOTES
The default exclusion patterns are:
Code Block |
---|
// Miscellaneous typical temporary files
"**/*~", "**/#*#", "**/.#*", "**/%*%", "**/._*",
// CVS
"**/CVS", "**/CVS/**", "**/.cvsignore",
// SCCS
"**/SCCS", "**/SCCS/**",
// Visual SourceSafe
"**/vssver.scc",
// Subversion
"**/.svn", "**/.svn/**",
// Mac
"**/.DS_Store"
|
...
Examples
Code Block | ||||
---|---|---|---|---|
| ||||
<ogrescript><uri-pattern base="file:/home/arossi/file.txt"/> <!-- just a single file --> <uri-pattern base="file:/home/arossi"> ... ... </ogrescript><include>file.text</include> <!-- equivalent to previous example --> </uri-pattern> <uri-pattern base="file:/home/arossi"> <include>docs/*</include> <!-- all files and directory names in the docs directory, but nothing deeper --> </uri-pattern> <uri-pattern base="file:/home/arossi"> <include>docs/**</include> <!-- the entire docs directory --> </uri-pattern> <uri-pattern base="file:/home/arossi"> <include>*/doc/**</include> <!-- everything in all doc directories one level down --> </uri-pattern> <uri-pattern base="file:/home/arossi"> <include>**/doc/**</include> <!-- everything in all doc directories anywhere --> </uri-pattern> <uri-pattern base="file:/home/arossi"> <include>**</include> <exclude>**properties**</exclude> <!-- everything except files or directories containing 'properties' in its name --> </uri-pattern> |