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
|
---|
15 | supports 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 "<code>true</code>".</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 | "<code>true</code>", all properties <i>not</i>
|
---|
33 | selected by nested elements will be returned. Default is
|
---|
34 | "<code>false</code>". <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
|
---|
44 | set.</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 | <propertyset id="properties-starting-with-foo">
|
---|
89 | <propertyref prefix="foo"/>
|
---|
90 | </propertyset>
|
---|
91 | <propertyset id="properties-starting-with-bar">
|
---|
92 | <propertyref prefix="bar"/>
|
---|
93 | </propertyset>
|
---|
94 | <propertyset id="my-set">
|
---|
95 | <propertyset refid="properties-starting-with-foo"/>
|
---|
96 | <propertyset refid="properties-starting-with-bar"/>
|
---|
97 | </propertyset>
|
---|
98 | </pre></blockquote>
|
---|
99 |
|
---|
100 | <p>collects all properties whose name starts with either
|
---|
101 | "foo" or "bar" in the set named
|
---|
102 | "my-set".</p>
|
---|
103 |
|
---|
104 | <h4>mapper</h4>
|
---|
105 |
|
---|
106 | <p>A <a href="mapper.html">mapper</a> - at maximum one mapper can be
|
---|
107 | specified. The mapper is used to change the names of the property
|
---|
108 | keys, for example:
|
---|
109 |
|
---|
110 | <blockquote><pre>
|
---|
111 | <propertyset id="properties-starting-with-foo">
|
---|
112 | <propertyref prefix="foo"/>
|
---|
113 | <mapper type="glob" from="foo*" to="bar*"/>
|
---|
114 | </propertyset>
|
---|
115 | </pre></blockquote>
|
---|
116 |
|
---|
117 | <p>collects all properties whose name starts with "foo", but
|
---|
118 | changes the names to start with "bar" instead.</p>
|
---|
119 |
|
---|
120 | <p>If supplied, the nested mapper will be applied
|
---|
121 | subsequent to any negation of matched properties.</p>
|
---|
122 |
|
---|
123 | <hr>
|
---|
124 | <p align="center">Copyright © 2003-2005 The Apache Software Foundation. All rights
|
---|
125 | Reserved.</p>
|
---|
126 |
|
---|
127 | </body>
|
---|
128 | </html>
|
---|
129 |
|
---|