<uri-pattern>
Purpose/Function
Describes a pattern to match when qualifying paths from a listing operation. Follows the Ant pattern conventions:
* = any character up to the first slash
** = all characters, including slashes
Attributes
NAME |
TYPE |
DEFAULT VALUE |
DESCRIPTION |
---|---|---|---|
base |
|
(required) |
the base URI for the listing; if there are includes or excludes, this should be a directory |
defaultexcludes |
|
|
use the default exclude patterns (see below) |
caseSensitive |
|
|
matching should observe case |
Elements
TAG |
TYPE |
COUNT |
DESCRIPTION |
---|---|---|---|
|
|
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:
// Miscellaneous typical temporary files "**/*~", "**/#*#", "**/.#*", "**/%*%", "**/._*", // CVS "**/CVS", "**/CVS/**", "**/.cvsignore", // SCCS "**/SCCS", "**/SCCS/**", // Visual SourceSafe "**/vssver.scc", // Subversion "**/.svn", "**/.svn/**", // Mac "**/.DS_Store"
Examples
<uri-pattern base="/home/arossi/file.txt"/> <!-- just a single file --> <uri-pattern base="/home/arossi"> <include>docs/*</include> <!-- all files in the docs directory, but nothing deeper --> </uri-pattern> <uri-pattern base="/home/arossi"> <include>docs/**</include> <!-- the entire docs directory --> </uri-pattern> <uri-pattern base="/home/arossi"> <include>*/doc/**</include> <!-- everything in all doc directories one level down --> </uri-pattern> <uri-pattern base="/home/arossi"> <include>**/doc/**</include> <!-- everything in all doc directories anywhere --> </uri-pattern> <uri-pattern base="/home/arossi"> <include>**</include> <exclude>**/*properties**</exclude> <!-- everything except files or directories containing 'properties' in its name --> </uri-pattern>