source: release-kits/lirk3/resources/gs3-release-maker/ant/docs/manual/CoreTypes/dirset.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 4.1 KB
Line 
1<html>
2
3<head>
4<meta http-equiv="Content-Language" content="en-us">
5<title>DirSet Type</title>
6<link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
7</head>
8
9<body>
10
11<h2><a name="dirset">DirSet</a></h2>
12<p>DirSets are groups of directories. These directories can be found in a
13directory tree starting in a base directory and are matched by
14patterns taken from a number of <a
15href="patternset.html">PatternSets</a>. DirSets can appear inside tasks
16that support this feature or at the same level as <code>target</code>
17(i.e., as children of <code>&lt;project&gt;</code>).</p>
18<p>PatternSets can be specified as nested
19<code>&lt;patternset&gt;</code> elements. In addition, DirSet holds
20an implicit PatternSet and supports the nested
21<code>&lt;include&gt;</code>, <code>&lt;includesfile&gt;</code>,
22<code>&lt;exclude&gt;</code> and <code>&lt;excludesfile&gt;</code>
23elements of <code>&lt;patternset&gt;</code> directly, as well as
24<code>&lt;patternset&gt;</code>'s attributes.</p>
25<table border="1" cellpadding="2" cellspacing="0">
26 <tr>
27 <td valign="top"><b>Attribute</b></td>
28 <td valign="top"><b>Description</b></td>
29 <td align="center" valign="top"><b>Required</b></td>
30 </tr>
31 <tr>
32 <td valign="top">dir</td>
33 <td valign="top">The root of the directory tree of this DirSet.</td>
34 <td valign="top" align="center">Yes</td>
35 </tr>
36 <tr>
37 <td valign="top">includes</td>
38 <td valign="top">A comma- or space-separated list of patterns of directories that
39 must be included; all directories are included when omitted.</td>
40 <td valign="top" align="center">No</td>
41 </tr>
42 <tr>
43 <td valign="top">includesfile</td>
44 <td valign="top">The name of a file; each line of this file is
45 taken to be an include pattern.</td>
46 <td valign="top" align="center">No</td>
47 </tr>
48 <tr>
49 <td valign="top">excludes</td>
50 <td valign="top">A comma- or space-separated list of patterns of directories that
51 must be excluded; no directories are excluded when omitted.</td>
52 <td valign="top" align="center">No</td>
53 </tr>
54 <tr>
55 <td valign="top">excludesfile</td>
56 <td valign="top">The name of a file; each line of this file is
57 taken to be an exclude pattern.</td>
58 <td valign="top" align="center">No</td>
59 </tr>
60 <tr>
61 <td valign="top">casesensitive</td>
62 <td valign="top">Specifies whether case-sensitivty should be applied
63 (<code>true</code>|<code>yes</code>|<code>on</code> or
64 <code>false</code>|<code>no</code>|<code>off</code>).</td>
65 <td valign="top" align="center">No; defaults to true.</td>
66 </tr>
67 <tr>
68 <td valign="top">followsymlinks</td>
69 <td valign="top">Shall symbolic links be followed? Defaults to
70 true. See <a href="fileset.html#symlink">fileset's documentation</a>.</td>
71 <td valign="top" align="center">No</td>
72 </tr>
73</table>
74
75<h4>Examples</h4>
76<blockquote><pre>
77&lt;dirset dir=&quot;${build.dir}&quot;&gt;
78 &lt;include name=&quot;apps/**/classes&quot;/&gt;
79 &lt;exclude name=&quot;apps/**/*Test*&quot;/&gt;
80&lt;/dirset&gt;
81</pre></blockquote>
82<p>Groups all directories named <code>classes</code> found under the
83<code>apps</code> subdirectory of <code>${build.dir}</code>, except those
84that have the text <code>Test</code> in their name.</p>
85<blockquote><pre>
86&lt;dirset dir=&quot;${build.dir}&quot;&gt;
87 &lt;patternset id=&quot;non.test.classes&quot;&gt;
88 &lt;include name=&quot;apps/**/classes&quot;/&gt;
89 &lt;exclude name=&quot;apps/**/*Test*&quot;/&gt;
90 &lt;/patternset&gt;
91&lt;/dirset&gt;
92</pre></blockquote>
93<p>Groups the same directories as the above example, but also establishes
94a PatternSet that can be referenced in other
95<code>&lt;dirset&gt;</code> elements, rooted at a different directory.</p>
96<blockquote><pre>
97&lt;dirset dir=&quot;${debug_build.dir}&quot;&gt;
98 &lt;patternset refid=&quot;non.test.classes&quot;/&gt;
99&lt;/dirset&gt;
100</pre></blockquote>
101<p>Groups all directories in directory <code>${debug_build.dir}</code>,
102using the same patterns as the above example.</p>
103
104<hr>
105<p align="center">Copyright &copy; 2002,2004 The Apache Software Foundation.
106All rights Reserved.</p>
107
108</body>
109</html>
110
Note: See TracBrowser for help on using the repository browser.