| <html> |
| |
| <head> |
| <meta http-equiv="Content-Language" content="en-us"> |
| <title>DirSet Type</title> |
| </head> |
| |
| <body> |
| |
| <h2><a name="dirset">DirSet</a></h2> |
| <p>DirSets are groups of directories. These directories can be found in a |
| directory tree starting in a base directory and are matched by |
| patterns taken from a number of <a |
| href="patternset.html">PatternSets</a>. DirSets can appear inside tasks |
| that support this feature or at the same level as <code>target</code> |
| (i.e., as children of <code><project></code>).</p> |
| <p>PatternSets can be specified as nested |
| <code><patternset></code> elements. In addition, DirSet holds |
| an implicit PatternSet and supports the nested |
| <code><include></code>, <code><includesfile></code>, |
| <code><exclude></code> and <code><excludesfile></code> |
| elements of <code><patternset></code> directly, as well as |
| <code><patternset></code>'s attributes.</p> |
| <table border="1" cellpadding="2" cellspacing="0"> |
| <tr> |
| <td valign="top"><b>Attribute</b></td> |
| <td valign="top"><b>Description</b></td> |
| <td align="center" valign="top"><b>Required</b></td> |
| </tr> |
| <tr> |
| <td valign="top">dir</td> |
| <td valign="top">The root of the directory tree of this DirSet.</td> |
| <td valign="top" align="center">Yes</td> |
| </tr> |
| <tr> |
| <td valign="top">includes</td> |
| <td valign="top">A comma- or space-separated list of patterns of directories that |
| must be included; all directories are included when omitted.</td> |
| <td valign="top" align="center">No</td> |
| </tr> |
| <tr> |
| <td valign="top">includesfile</td> |
| <td valign="top">The name of a file; each line of this file is |
| taken to be an include pattern.</td> |
| <td valign="top" align="center">No</td> |
| </tr> |
| <tr> |
| <td valign="top">excludes</td> |
| <td valign="top">A comma- or space-separated list of patterns of directories that |
| must be excluded; no directories are excluded when omitted.</td> |
| <td valign="top" align="center">No</td> |
| </tr> |
| <tr> |
| <td valign="top">excludesfile</td> |
| <td valign="top">The name of a file; each line of this file is |
| taken to be an exclude pattern.</td> |
| <td valign="top" align="center">No</td> |
| </tr> |
| <tr> |
| <td valign="top">casesensitive</td> |
| <td valign="top">Specifies whether case-sensitivty should be applied |
| (<code>true</code>|<code>yes</code>|<code>on</code> or |
| <code>false</code>|<code>no</code>|<code>off</code>).</td> |
| <td valign="top" align="center">No; defaults to true.</td> |
| </tr> |
| <tr> |
| <td valign="top">followsymlinks</td> |
| <td valign="top">Shall symbolic links be followed? Defaults to |
| true. See <a href="fileset.html#symlink">fileset's documentation</a>.</td> |
| <td valign="top" align="center">No</td> |
| </tr> |
| </table> |
| |
| <h4>Examples</h4> |
| <blockquote><pre> |
| <dirset dir="${build.dir}"> |
| <include name="apps/**/classes"/> |
| <exclude name="apps/**/*Test*"/> |
| </dirset> |
| </pre></blockquote> |
| <p>Groups all directories named <code>classes</code> found under the |
| <code>apps</code> subdirectory of <code>${build.dir}</code>, except those |
| that have the text <code>Test</code> in their name.</p> |
| <blockquote><pre> |
| <dirset dir="${build.dir}"> |
| <patternset id="non.test.classes"> |
| <include name="apps/**/classes"/> |
| <exclude name="apps/**/*Test*"/> |
| </patternset> |
| </dirset> |
| </pre></blockquote> |
| <p>Groups the same directories as the above example, but also establishes |
| a PatternSet that can be referenced in other |
| <code><dirset></code> elements, rooted at a different directory.</p> |
| <blockquote><pre> |
| <dirset dir="${debug_build.dir}" > |
| <patternset refid="non.test.classes"/> |
| </dirset> |
| </pre></blockquote> |
| <p>Groups all directories in directory <code>${debug_build.dir}</code>, |
| using the same patterns as the above example.</p> |
| |
| <hr> |
| <p align="center">Copyright © 2002 Apache Software Foundation. |
| All rights Reserved.</p> |
| |
| </body> |
| </html> |
| |