source: release-kits/lirk3/resources/gs3-release-maker/apache-ant-1.6.5/docs/manual/CoreTypes/propertyset.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.0 KB
Line 
1<html>
2
3<head>
4<meta http-equiv="Content-Language" content="en-us">
5<title>PropertySet Type</title>
6<link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
7</head>
8
9<body>
10
11<h2><a name="propertyset">PropertySet</a></h2>
12<p><em>Since Ant 1.6</em></p>
13
14<p>Groups a set of properties to be used by reference in a task that
15supports this.</p>
16
17<table border="1" cellpadding="2" cellspacing="0">
18 <tr>
19 <td valign="top"><b>Attribute</b></td>
20 <td valign="top"><b>Description</b></td>
21 <td align="center" valign="top"><b>Required</b></td>
22 </tr>
23 <tr>
24 <td valign="top">dynamic</td>
25 <td valign="top">Whether to reevaluate the set everytime the set
26 is used. Default is &quot;<code>true</code>&quot;.</td>
27 <td valign="top" align="center">No</td>
28 </tr>
29 <tr>
30 <td valign="top">negate</td>
31 <td valign="top">Whether to negate results. If
32 &quot;<code>true</code>&quot;, all properties <i>not</i>
33 selected by nested elements will be returned. Default is
34 &quot;<code>false</code>&quot;. <em>Since Ant 1.6.2</em>
35 </td>
36 <td valign="top" align="center">No</td>
37 </tr>
38</table>
39<h3>Parameters specified as nested elements</h3>
40
41<h4>propertyref</h4>
42
43<p>Selects properties from the current project to be included in the
44set.</p>
45
46<table border="1" cellpadding="2" cellspacing="0">
47 <tr>
48 <td valign="top"><b>Attribute</b></td>
49 <td valign="top"><b>Description</b></td>
50 <td align="center" valign="top"><b>Required</b></td>
51 </tr>
52 <tr>
53 <td valign="top">name</td>
54 <td valign="top">Select the property with the given name.</td>
55 <td align="center" valign="top" rowspan="4">Exactly one of these.</td>
56 </tr>
57 <tr>
58 <td valign="top">prefix</td>
59 <td valign="top">Select the properties whose name starts with the
60 given string.</td>
61 </tr>
62 <tr>
63 <td valign="top">regex</td>
64 <td valign="top">Select the properties that match the given
65 regular expression. Similar to <a
66 href="mapper.html#regexp-mapper">regexp type mappers</a>, this
67 requires a supported regular expression library.</td>
68 </tr>
69 <tr>
70 <td valign="top">builtin</td>
71 <td valign="top">Selects a builtin set of properties. Valid
72 values for this attribute are <code>all</code> for all Ant
73 properties, <code>system</code> for the system properties and
74 <code>commandline</code> for all properties specified on the
75 command line when invoking Ant (plus a number of special
76 internal Ant properties).</td>
77 </tr>
78</table>
79
80<h4>propertyset</h4>
81
82<p>A <code>propertyset</code> can be used as the set union of more
83<code>propertyset</code>s.</p>
84
85<p>For example:</p>
86
87<blockquote><pre>
88&lt;propertyset id=&quot;properties-starting-with-foo&quot;&gt;
89 &lt;propertyref prefix=&quot;foo&quot;/&gt;
90&lt;/propertyset&gt;
91&lt;propertyset id=&quot;properties-starting-with-bar&quot;&gt;
92 &lt;propertyref prefix=&quot;bar&quot;/&gt;
93&lt;/propertyset&gt;
94&lt;propertyset id=&quot;my-set&quot;&gt;
95 &lt;propertyset refid=&quot;properties-starting-with-foo&quot;/&gt;
96 &lt;propertyset refid=&quot;properties-starting-with-bar&quot;/&gt;
97&lt;/propertyset&gt;
98</pre></blockquote>
99
100<p>collects all properties whose name starts with either
101&quot;foo&quot; or &quot;bar&quot; in the set named
102&quot;my-set&quot;.</p>
103
104<h4>mapper</h4>
105
106<p>A <a href="mapper.html">mapper</a> - at maximum one mapper can be
107specified. The mapper is used to change the names of the property
108keys, for example:
109
110<blockquote><pre>
111&lt;propertyset id=&quot;properties-starting-with-foo&quot;&gt;
112 &lt;propertyref prefix=&quot;foo&quot;/&gt;
113 &lt;mapper type=&quot;glob&quot; from=&quot;foo*&quot; to=&quot;bar*&quot;/&gt;
114&lt;/propertyset&gt;
115</pre></blockquote>
116
117<p>collects all properties whose name starts with &quot;foo&quot;, but
118changes the names to start with &quot;bar&quot; instead.</p>
119
120<p>If supplied, the nested mapper will be applied
121subsequent to any negation of matched properties.</p>
122
123<hr>
124<p align="center">Copyright &copy; 2003-2005 The Apache Software Foundation. All rights
125Reserved.</p>
126
127</body>
128</html>
129
Note: See TracBrowser for help on using the repository browser.