Browse Source

Clarify patterns, PR: 32148

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277046 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 20 years ago
parent
commit
169b914f9d
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      docs/manual/dirtasks.html

+ 9
- 0
docs/manual/dirtasks.html View File

@@ -65,6 +65,15 @@ the default excludes).</p>
of files. These patterns look very much like the patterns used in DOS and of files. These patterns look very much like the patterns used in DOS and
UNIX:</p> UNIX:</p>
<p>'*' matches zero or more characters, '?' matches one character.</p> <p>'*' matches zero or more characters, '?' matches one character.</p>

<p>In general, patterns are considered relative paths, relative to a
task dependent base directory (the dir attribute in the case of
<code>&lt;fileset&gt;</code>). Only files found below that base
directory are considered. So while a pattern like
<code>../foo.java</code> is possible, it will not match anything when
applied since the base directory's parent is never scanned for
files.</p>

<p><b>Examples:</b></p> <p><b>Examples:</b></p>
<p> <p>
<code>*.java</code>&nbsp;&nbsp;matches&nbsp;&nbsp;<code>.java</code>, <code>*.java</code>&nbsp;&nbsp;matches&nbsp;&nbsp;<code>.java</code>,


Loading…
Cancel
Save