1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
2 | <!--NewPage-->
|
---|
3 | <HTML>
|
---|
4 | <HEAD>
|
---|
5 | <!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:34 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | ModifiedSelector (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector class">
|
---|
11 |
|
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../stylesheet.css" TITLE="Style">
|
---|
13 |
|
---|
14 | <SCRIPT type="text/javascript">
|
---|
15 | function windowTitle()
|
---|
16 | {
|
---|
17 | parent.document.title="ModifiedSelector (Apache Ant API)";
|
---|
18 | }
|
---|
19 | </SCRIPT>
|
---|
20 |
|
---|
21 | </HEAD>
|
---|
22 |
|
---|
23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
24 |
|
---|
25 |
|
---|
26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
27 | <A NAME="navbar_top"><!-- --></A>
|
---|
28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
30 | <TR>
|
---|
31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
34 | <TR ALIGN="center" VALIGN="top">
|
---|
35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
42 | </TR>
|
---|
43 | </TABLE>
|
---|
44 | </TD>
|
---|
45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
46 | </EM>
|
---|
47 | </TD>
|
---|
48 | </TR>
|
---|
49 |
|
---|
50 | <TR>
|
---|
51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
52 | <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.AlgorithmName.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
55 | <A HREF="../../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
56 | <A HREF="ModifiedSelector.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <SCRIPT type="text/javascript">
|
---|
58 | <!--
|
---|
59 | if(window==top) {
|
---|
60 | document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
61 | }
|
---|
62 | //-->
|
---|
63 | </SCRIPT>
|
---|
64 | <NOSCRIPT>
|
---|
65 | <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
66 | </NOSCRIPT>
|
---|
67 |
|
---|
68 | </FONT></TD>
|
---|
69 | </TR>
|
---|
70 | <TR>
|
---|
71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
72 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_org.apache.tools.ant.types.selectors.BaseExtendSelector">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
75 | </TR>
|
---|
76 | </TABLE>
|
---|
77 | <A NAME="skip-navbar_top"></A>
|
---|
78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
79 |
|
---|
80 | <HR>
|
---|
81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
82 | <H2>
|
---|
83 | <FONT SIZE="-1">
|
---|
84 | org.apache.tools.ant.types.selectors.modifiedselector</FONT>
|
---|
85 | <BR>
|
---|
86 | Class ModifiedSelector</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</A>
|
---|
90 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html" title="class in org.apache.tools.ant.types">org.apache.tools.ant.types.DataType</A>
|
---|
91 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseSelector.html" title="class in org.apache.tools.ant.types.selectors">org.apache.tools.ant.types.selectors.BaseSelector</A>
|
---|
92 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseExtendSelector.html" title="class in org.apache.tools.ant.types.selectors">org.apache.tools.ant.types.selectors.BaseExtendSelector</A>
|
---|
93 | <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector</B>
|
---|
94 | </PRE>
|
---|
95 | <DL>
|
---|
96 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/ExtendFileSelector.html" title="interface in org.apache.tools.ant.types.selectors">ExtendFileSelector</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/FileSelector.html" title="interface in org.apache.tools.ant.types.selectors">FileSelector</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/Parameterizable.html" title="interface in org.apache.tools.ant.types">Parameterizable</A></DD>
|
---|
97 | </DL>
|
---|
98 | <HR>
|
---|
99 | <DL>
|
---|
100 | <DT>public class <B>ModifiedSelector</B><DT>extends <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseExtendSelector.html" title="class in org.apache.tools.ant.types.selectors">BaseExtendSelector</A></DL>
|
---|
101 |
|
---|
102 | <P>
|
---|
103 | <p>Selector class that uses <i>Algorithm</i>, <i>Cache</i> and <i>Comparator</i>
|
---|
104 | for its work.
|
---|
105 | The <i>Algorithm</i> is used for computing a hashvalue for a file.
|
---|
106 | The <i>Comparator</i> decides whether to select or not.
|
---|
107 | The <i>Cache</i> stores the other value for comparison by the <i>Comparator</i>
|
---|
108 | in a persistent manner.</p>
|
---|
109 |
|
---|
110 | <p>The ModifiedSelector is implemented as a <b>CoreSelector</b> and uses default
|
---|
111 | values for all its attributes therefore the simpliest example is <pre>
|
---|
112 | <copy todir="dest">
|
---|
113 | <filelist dir="src">
|
---|
114 | <modified/>
|
---|
115 | </filelist>
|
---|
116 | </copy>
|
---|
117 | </pre></p>
|
---|
118 |
|
---|
119 | <p>The same example rewritten as CoreSelector with setting the all values
|
---|
120 | (same as defaults are) would be <pre>
|
---|
121 | <copy todir="dest">
|
---|
122 | <filelist dir="src">
|
---|
123 | <modified update="true"
|
---|
124 | cache="propertyfile"
|
---|
125 | algorithm="digest"
|
---|
126 | comparator="equal">
|
---|
127 | <param name="cache.cachefile" value="cache.properties"/>
|
---|
128 | <param name="algorithm.algorithm" value="MD5"/>
|
---|
129 | </modified>
|
---|
130 | </filelist>
|
---|
131 | </copy>
|
---|
132 | </pre></p>
|
---|
133 |
|
---|
134 | <p>And the same rewritten as CustomSelector would be<pre>
|
---|
135 | <copy todir="dest">
|
---|
136 | <filelist dir="src">
|
---|
137 | <custom class="org.apache.tools.ant.type.selectors.ModifiedSelector">
|
---|
138 | <param name="update" value="true"/>
|
---|
139 | <param name="cache" value="propertyfile"/>
|
---|
140 | <param name="algorithm" value="digest"/>
|
---|
141 | <param name="comparator" value="equal"/>
|
---|
142 | <param name="cache.cachefile" value="cache.properties"/>
|
---|
143 | <param name="algorithm.algorithm" value="MD5"/>
|
---|
144 | </custom>
|
---|
145 | </filelist>
|
---|
146 | </copy>
|
---|
147 | </pre></p>
|
---|
148 |
|
---|
149 | <p>All these three examples copy the files from <i>src</i> to <i>dest</i>
|
---|
150 | using the ModifiedSelector. The ModifiedSelector uses the <i>PropertyfileCache
|
---|
151 | </i>, the <i>DigestAlgorithm</i> and the <i>EqualComparator</i> for its
|
---|
152 | work. The PropertyfileCache stores key-value-pairs in a simple java
|
---|
153 | properties file. The filename is <i>cache.properties</i>. The <i>update</i>
|
---|
154 | flag lets the selector update the values in the cache (and on first call
|
---|
155 | creates the cache). The <i>DigestAlgorithm</i> computes a hashvalue using the
|
---|
156 | java.security.MessageDigest class with its MD5-Algorithm and its standard
|
---|
157 | provider. The new computed hashvalue and the stored one are compared by
|
---|
158 | the <i>EqualComparator</i> which returns 'true' (more correct a value not
|
---|
159 | equals zero (1)) if the values are not the same using simple String
|
---|
160 | comparison.</p>
|
---|
161 |
|
---|
162 | <p>A useful scenario for this selector is inside a build environment
|
---|
163 | for homepage generation (e.g. with <a href="http://xml.apache.org/forrest/">
|
---|
164 | Apache Forrest</a>). <pre>
|
---|
165 | <target name="generate-and-upload-site">
|
---|
166 | <echo> generate the site using forrest </echo>
|
---|
167 | <antcall target="site"/>
|
---|
168 |
|
---|
169 | <echo> upload the changed files </echo>
|
---|
170 | <ftp server="${ftp.server}" userid="${ftp.user}" password="${ftp.pwd}">
|
---|
171 | <fileset dir="htdocs/manual">
|
---|
172 | <modified/>
|
---|
173 | </fileset>
|
---|
174 | </ftp>
|
---|
175 | </target>
|
---|
176 | </pre> Here all <b>changed</b> files are uploaded to the server. The
|
---|
177 | ModifiedSelector saves therefore much upload time.</p>
|
---|
178 |
|
---|
179 | <p>This selector supports the following nested param's:
|
---|
180 | <table>
|
---|
181 | <tr><th>name</th><th>values</th><th>description</th><th>required</th></tr>
|
---|
182 | <tr>
|
---|
183 | <td> cache </td>
|
---|
184 | <td> propertyfile </td>
|
---|
185 | <td> which cache implementation should be used <ul>
|
---|
186 | <li><b>propertyfile</b> - using java.util.Properties </li>
|
---|
187 | </td>
|
---|
188 | <td> no, defaults to 'propertyfile' </td>
|
---|
189 | </tr>
|
---|
190 | <tr>
|
---|
191 | <td> algorithm </td>
|
---|
192 | <td> hashvalue | digest </td>
|
---|
193 | <td> which algorithm implementation should be used
|
---|
194 | <li><b>hashvalue</b> - loads the file content into a String and
|
---|
195 | uses its hashValue() method </li>
|
---|
196 | <li><b>digest</b> - uses java.security.MessageDigest class </i>
|
---|
197 | </td>
|
---|
198 | <td> no, defaults to digest </td>
|
---|
199 | </tr>
|
---|
200 | <tr>
|
---|
201 | <td> comparator </td>
|
---|
202 | <td> equal | role </td>
|
---|
203 | <td> which comparator implementation should be used
|
---|
204 | <li><b>equal</b> - simple comparison using String.equals() </li>
|
---|
205 | <li><b>role</b> - uses java.text.RuleBasedCollator class </i>
|
---|
206 | </td>
|
---|
207 | <td> no, defaults to equal </td>
|
---|
208 | </tr>
|
---|
209 | <tr>
|
---|
210 | <td> update </td>
|
---|
211 | <td> true | false </td>
|
---|
212 | <td> If set to <i>true</i>, the cache will be stored, otherwise the values
|
---|
213 | will be lost. </td>
|
---|
214 | <td> no, defaults to true </td>
|
---|
215 | </tr>
|
---|
216 | <tr>
|
---|
217 | <td> seldirs </td>
|
---|
218 | <td> true | false </td>
|
---|
219 | <td> If set to <i>true</i>, directories will be selected otherwise not </td>
|
---|
220 | <td> no, defaults to true </td>
|
---|
221 | </tr>
|
---|
222 | <tr>
|
---|
223 | <td> cache.* </td>
|
---|
224 | <td> depends on used cache </td>
|
---|
225 | <td> value is stored and given to the Cache-Object for initialisation </td>
|
---|
226 | <td> depends on used cache </td>
|
---|
227 | </tr>
|
---|
228 | <tr>
|
---|
229 | <td> algorithm.* </td>
|
---|
230 | <td> depends on used algorithm </td>
|
---|
231 | <td> value is stored and given to the Algorithm-Object for initialisation </td>
|
---|
232 | <td> depends on used algorithm </td>
|
---|
233 | </tr>
|
---|
234 | <tr>
|
---|
235 | <td> comparator.* </td>
|
---|
236 | <td> depends on used comparator </td>
|
---|
237 | <td> value is stored and given to the Comparator-Object for initialisation </td>
|
---|
238 | <td> depends on used comparator </td>
|
---|
239 | </tr>
|
---|
240 | </table>
|
---|
241 | If another name is used a BuildException "Invalid parameter" is thrown. </p>
|
---|
242 |
|
---|
243 | <p>This selector uses reflection for setting the values of its three interfaces
|
---|
244 | (using org.apache.tools.ant.IntrospectionHelper) therefore no special
|
---|
245 | 'configuration interfaces' has to be implemented by new caches, algorithms or
|
---|
246 | comparators. All present <i>set</i>XX methods can be used. E.g. the DigestAlgorithm
|
---|
247 | can use a specified provider for computing its value. For selecting this
|
---|
248 | there is a <i>setProvider(String providername)</i> method. So you can use
|
---|
249 | a nested <i><param name="algorithm.provider" value="MyProvider"/></i>.
|
---|
250 | <P>
|
---|
251 |
|
---|
252 | <P>
|
---|
253 | <DL>
|
---|
254 | <DT><B>Since:</B></DT>
|
---|
255 | <DD>Ant 1.6</DD>
|
---|
256 | <DT><B>Version:</B></DT>
|
---|
257 | <DD>2003-09-13</DD>
|
---|
258 | </DL>
|
---|
259 | <HR>
|
---|
260 |
|
---|
261 | <P>
|
---|
262 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
263 |
|
---|
264 | <A NAME="nested_class_summary"><!-- --></A>
|
---|
265 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
266 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
267 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
268 | <B>Nested Class Summary</B></FONT></TD>
|
---|
269 | </TR>
|
---|
270 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
271 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
272 | <CODE>static class</CODE></FONT></TD>
|
---|
273 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.AlgorithmName.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector">ModifiedSelector.AlgorithmName</A></B></CODE>
|
---|
274 |
|
---|
275 | <BR>
|
---|
276 | </TD>
|
---|
277 | </TR>
|
---|
278 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
279 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
280 | <CODE>static class</CODE></FONT></TD>
|
---|
281 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.CacheName.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector">ModifiedSelector.CacheName</A></B></CODE>
|
---|
282 |
|
---|
283 | <BR>
|
---|
284 | </TD>
|
---|
285 | </TR>
|
---|
286 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
287 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
288 | <CODE>static class</CODE></FONT></TD>
|
---|
289 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.ComparatorName.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector">ModifiedSelector.ComparatorName</A></B></CODE>
|
---|
290 |
|
---|
291 | <BR>
|
---|
292 | </TD>
|
---|
293 | </TR>
|
---|
294 | </TABLE>
|
---|
295 |
|
---|
296 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
297 |
|
---|
298 | <A NAME="field_summary"><!-- --></A>
|
---|
299 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
300 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
301 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
302 | <B>Field Summary</B></FONT></TD>
|
---|
303 | </TR>
|
---|
304 | </TABLE>
|
---|
305 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.types.selectors.BaseExtendSelector"><!-- --></A>
|
---|
306 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
307 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
308 | <TD><B>Fields inherited from class org.apache.tools.ant.types.selectors.<A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseExtendSelector.html" title="class in org.apache.tools.ant.types.selectors">BaseExtendSelector</A></B></TD>
|
---|
309 | </TR>
|
---|
310 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
311 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseExtendSelector.html#parameters">parameters</A></CODE></TD>
|
---|
312 | </TR>
|
---|
313 | </TABLE>
|
---|
314 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.types.DataType"><!-- --></A>
|
---|
315 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
316 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
317 | <TD><B>Fields inherited from class org.apache.tools.ant.types.<A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html" title="class in org.apache.tools.ant.types">DataType</A></B></TD>
|
---|
318 | </TR>
|
---|
319 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
320 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#checked">checked</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#description">description</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#ref">ref</A></CODE></TD>
|
---|
321 | </TR>
|
---|
322 | </TABLE>
|
---|
323 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
324 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
325 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
326 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
327 | </TR>
|
---|
328 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
329 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</A></CODE></TD>
|
---|
330 | </TR>
|
---|
331 | </TABLE>
|
---|
332 |
|
---|
333 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
334 |
|
---|
335 | <A NAME="constructor_summary"><!-- --></A>
|
---|
336 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
337 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
338 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
339 | <B>Constructor Summary</B></FONT></TD>
|
---|
340 | </TR>
|
---|
341 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
342 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#ModifiedSelector()">ModifiedSelector</A></B>()</CODE>
|
---|
343 |
|
---|
344 | <BR>
|
---|
345 | Bean-Constructor.</TD>
|
---|
346 | </TR>
|
---|
347 | </TABLE>
|
---|
348 |
|
---|
349 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
350 |
|
---|
351 | <A NAME="method_summary"><!-- --></A>
|
---|
352 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
353 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
354 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
355 | <B>Method Summary</B></FONT></TD>
|
---|
356 | </TR>
|
---|
357 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
358 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
359 | <CODE> void</CODE></FONT></TD>
|
---|
360 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#addParam(org.apache.tools.ant.types.Parameter)">addParam</A></B>(<A HREF="../../../../../../../org/apache/tools/ant/types/Parameter.html" title="class in org.apache.tools.ant.types">Parameter</A> parameter)</CODE>
|
---|
361 |
|
---|
362 | <BR>
|
---|
363 | Support for nested <param> tags.</TD>
|
---|
364 | </TR>
|
---|
365 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
366 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
367 | <CODE> void</CODE></FONT></TD>
|
---|
368 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#addParam(java.lang.String, java.lang.Object)">addParam</A></B>(java.lang.String key,
|
---|
369 | java.lang.Object value)</CODE>
|
---|
370 |
|
---|
371 | <BR>
|
---|
372 | Support for nested <param> tags.</TD>
|
---|
373 | </TR>
|
---|
374 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
375 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
376 | <CODE> void</CODE></FONT></TD>
|
---|
377 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#configure()">configure</A></B>()</CODE>
|
---|
378 |
|
---|
379 | <BR>
|
---|
380 | Configures this Selector.</TD>
|
---|
381 | </TR>
|
---|
382 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
383 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
384 | <CODE> <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Algorithm.html" title="interface in org.apache.tools.ant.types.selectors.modifiedselector">Algorithm</A></CODE></FONT></TD>
|
---|
385 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#getAlgorithm()">getAlgorithm</A></B>()</CODE>
|
---|
386 |
|
---|
387 | <BR>
|
---|
388 | </TD>
|
---|
389 | </TR>
|
---|
390 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
391 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
392 | <CODE> <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Cache.html" title="interface in org.apache.tools.ant.types.selectors.modifiedselector">Cache</A></CODE></FONT></TD>
|
---|
393 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#getCache()">getCache</A></B>()</CODE>
|
---|
394 |
|
---|
395 | <BR>
|
---|
396 | </TD>
|
---|
397 | </TR>
|
---|
398 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
399 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
400 | <CODE> java.util.Comparator</CODE></FONT></TD>
|
---|
401 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#getComparator()">getComparator</A></B>()</CODE>
|
---|
402 |
|
---|
403 | <BR>
|
---|
404 | </TD>
|
---|
405 | </TR>
|
---|
406 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
407 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
408 | <CODE> boolean</CODE></FONT></TD>
|
---|
409 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#isSelected(java.io.File, java.lang.String, java.io.File)">isSelected</A></B>(java.io.File basedir,
|
---|
410 | java.lang.String filename,
|
---|
411 | java.io.File file)</CODE>
|
---|
412 |
|
---|
413 | <BR>
|
---|
414 | Implementation of BaseExtendSelector.isSelected().</TD>
|
---|
415 | </TR>
|
---|
416 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
417 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
418 | <CODE> void</CODE></FONT></TD>
|
---|
419 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#setAlgorithm(org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector.AlgorithmName)">setAlgorithm</A></B>(<A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.AlgorithmName.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector">ModifiedSelector.AlgorithmName</A> name)</CODE>
|
---|
420 |
|
---|
421 | <BR>
|
---|
422 | </TD>
|
---|
423 | </TR>
|
---|
424 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
425 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
426 | <CODE> void</CODE></FONT></TD>
|
---|
427 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#setCache(org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector.CacheName)">setCache</A></B>(<A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.CacheName.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector">ModifiedSelector.CacheName</A> name)</CODE>
|
---|
428 |
|
---|
429 | <BR>
|
---|
430 | </TD>
|
---|
431 | </TR>
|
---|
432 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
433 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
434 | <CODE> void</CODE></FONT></TD>
|
---|
435 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#setComparator(org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector.ComparatorName)">setComparator</A></B>(<A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.ComparatorName.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector">ModifiedSelector.ComparatorName</A> name)</CODE>
|
---|
436 |
|
---|
437 | <BR>
|
---|
438 | </TD>
|
---|
439 | </TR>
|
---|
440 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
441 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
442 | <CODE> void</CODE></FONT></TD>
|
---|
443 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#setParameters(org.apache.tools.ant.types.Parameter[])">setParameters</A></B>(<A HREF="../../../../../../../org/apache/tools/ant/types/Parameter.html" title="class in org.apache.tools.ant.types">Parameter</A>[] parameters)</CODE>
|
---|
444 |
|
---|
445 | <BR>
|
---|
446 | Defined in org.apache.tools.ant.types.Parameterizable.</TD>
|
---|
447 | </TR>
|
---|
448 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
449 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
450 | <CODE> void</CODE></FONT></TD>
|
---|
451 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#setSeldirs(boolean)">setSeldirs</A></B>(boolean seldirs)</CODE>
|
---|
452 |
|
---|
453 | <BR>
|
---|
454 | Support for <i>seldirs</i> attribute.</TD>
|
---|
455 | </TR>
|
---|
456 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
457 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
458 | <CODE> void</CODE></FONT></TD>
|
---|
459 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#setUpdate(boolean)">setUpdate</A></B>(boolean update)</CODE>
|
---|
460 |
|
---|
461 | <BR>
|
---|
462 | Support for <i>update</i> attribute.</TD>
|
---|
463 | </TR>
|
---|
464 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
465 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
466 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
467 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#toString()">toString</A></B>()</CODE>
|
---|
468 |
|
---|
469 | <BR>
|
---|
470 | Override Object.toString().</TD>
|
---|
471 | </TR>
|
---|
472 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
473 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
474 | <CODE>protected void</CODE></FONT></TD>
|
---|
475 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#tryToSetAParameter(java.lang.Object, java.lang.String, java.lang.String)">tryToSetAParameter</A></B>(java.lang.Object obj,
|
---|
476 | java.lang.String name,
|
---|
477 | java.lang.String value)</CODE>
|
---|
478 |
|
---|
479 | <BR>
|
---|
480 | Try to set a value on an object using reflection.</TD>
|
---|
481 | </TR>
|
---|
482 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
483 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
484 | <CODE> void</CODE></FONT></TD>
|
---|
485 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#useParameter(org.apache.tools.ant.types.Parameter)">useParameter</A></B>(<A HREF="../../../../../../../org/apache/tools/ant/types/Parameter.html" title="class in org.apache.tools.ant.types">Parameter</A> parameter)</CODE>
|
---|
486 |
|
---|
487 | <BR>
|
---|
488 | Support for nested <param name="" value=""/> tags.</TD>
|
---|
489 | </TR>
|
---|
490 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
491 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
492 | <CODE> void</CODE></FONT></TD>
|
---|
493 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#verifySettings()">verifySettings</A></B>()</CODE>
|
---|
494 |
|
---|
495 | <BR>
|
---|
496 | Overrides BaseSelector.verifySettings().</TD>
|
---|
497 | </TR>
|
---|
498 | </TABLE>
|
---|
499 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.types.selectors.BaseExtendSelector"><!-- --></A>
|
---|
500 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
501 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
502 | <TD><B>Methods inherited from class org.apache.tools.ant.types.selectors.<A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseExtendSelector.html" title="class in org.apache.tools.ant.types.selectors">BaseExtendSelector</A></B></TD>
|
---|
503 | </TR>
|
---|
504 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
505 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseExtendSelector.html#getParameters()">getParameters</A></CODE></TD>
|
---|
506 | </TR>
|
---|
507 | </TABLE>
|
---|
508 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.types.selectors.BaseSelector"><!-- --></A>
|
---|
509 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
510 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
511 | <TD><B>Methods inherited from class org.apache.tools.ant.types.selectors.<A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseSelector.html" title="class in org.apache.tools.ant.types.selectors">BaseSelector</A></B></TD>
|
---|
512 | </TR>
|
---|
513 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
514 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseSelector.html#getError()">getError</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseSelector.html#setError(java.lang.String)">setError</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseSelector.html#validate()">validate</A></CODE></TD>
|
---|
515 | </TR>
|
---|
516 | </TABLE>
|
---|
517 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.types.DataType"><!-- --></A>
|
---|
518 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
519 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
520 | <TD><B>Methods inherited from class org.apache.tools.ant.types.<A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html" title="class in org.apache.tools.ant.types">DataType</A></B></TD>
|
---|
521 | </TR>
|
---|
522 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
523 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#checkAttributesAllowed()">checkAttributesAllowed</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#checkChildrenAllowed()">checkChildrenAllowed</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#circularReference()">circularReference</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#dieOnCircularReference(java.util.Stack, org.apache.tools.ant.Project)">dieOnCircularReference</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#getCheckedRef(java.lang.Class, java.lang.String)">getCheckedRef</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#getDescription()">getDescription</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#getRefid()">getRefid</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#isChecked()">isChecked</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#isReference()">isReference</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#noChildrenAllowed()">noChildrenAllowed</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#setChecked(boolean)">setChecked</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#setRefid(org.apache.tools.ant.types.Reference)">setRefid</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/DataType.html#tooManyAttributes()">tooManyAttributes</A></CODE></TD>
|
---|
524 | </TR>
|
---|
525 | </TABLE>
|
---|
526 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
527 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
528 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
529 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
530 | </TR>
|
---|
531 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
532 | <TD><CODE><A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</A>, <A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html#log(java.lang.String)">log</A>, <A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html#log(java.lang.String, int)">log</A>, <A HREF="../../../../../../../org/apache/tools/ant/ProjectComponent.html#setProject(org.apache.tools.ant.Project)">setProject</A></CODE></TD>
|
---|
533 | </TR>
|
---|
534 | </TABLE>
|
---|
535 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
536 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
537 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
538 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
539 | </TR>
|
---|
540 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
541 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
|
---|
542 | </TR>
|
---|
543 | </TABLE>
|
---|
544 |
|
---|
545 | <P>
|
---|
546 |
|
---|
547 | <!-- ============ FIELD DETAIL =========== -->
|
---|
548 |
|
---|
549 |
|
---|
550 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
551 |
|
---|
552 | <A NAME="constructor_detail"><!-- --></A>
|
---|
553 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
554 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
555 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
556 | <B>Constructor Detail</B></FONT></TD>
|
---|
557 | </TR>
|
---|
558 | </TABLE>
|
---|
559 |
|
---|
560 | <A NAME="ModifiedSelector()"><!-- --></A><H3>
|
---|
561 | ModifiedSelector</H3>
|
---|
562 | <PRE>
|
---|
563 | public <B>ModifiedSelector</B>()</PRE>
|
---|
564 | <DL>
|
---|
565 | <DD>Bean-Constructor.
|
---|
566 | <P>
|
---|
567 | </DL>
|
---|
568 |
|
---|
569 | <!-- ============ METHOD DETAIL ========== -->
|
---|
570 |
|
---|
571 | <A NAME="method_detail"><!-- --></A>
|
---|
572 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
573 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
574 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
575 | <B>Method Detail</B></FONT></TD>
|
---|
576 | </TR>
|
---|
577 | </TABLE>
|
---|
578 |
|
---|
579 | <A NAME="verifySettings()"><!-- --></A><H3>
|
---|
580 | verifySettings</H3>
|
---|
581 | <PRE>
|
---|
582 | public void <B>verifySettings</B>()</PRE>
|
---|
583 | <DL>
|
---|
584 | <DD>Overrides BaseSelector.verifySettings().
|
---|
585 | <P>
|
---|
586 | <DD><DL>
|
---|
587 | <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseSelector.html#verifySettings()">verifySettings</A></CODE> in class <CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseSelector.html" title="class in org.apache.tools.ant.types.selectors">BaseSelector</A></CODE></DL>
|
---|
588 | </DD>
|
---|
589 | <DD><DL>
|
---|
590 | </DL>
|
---|
591 | </DD>
|
---|
592 | </DL>
|
---|
593 | <HR>
|
---|
594 |
|
---|
595 | <A NAME="configure()"><!-- --></A><H3>
|
---|
596 | configure</H3>
|
---|
597 | <PRE>
|
---|
598 | public void <B>configure</B>()</PRE>
|
---|
599 | <DL>
|
---|
600 | <DD>Configures this Selector.
|
---|
601 | Does this work only once per Selector object.
|
---|
602 | <p>Because some problems while configuring from <custom>Selector
|
---|
603 | the configuration is done in the following order:<ol>
|
---|
604 | <li> collect the configuration data </li>
|
---|
605 | <li> wait for the first isSelected() call </li>
|
---|
606 | <li> set the default values </li>
|
---|
607 | <li> set values for name pattern '*': update, cache, algorithm, comparator </li>
|
---|
608 | <li> set values for name pattern '*.*: cache.cachefile, ... </li>
|
---|
609 | </ol></p>
|
---|
610 | <p>This configuration algorithm is needed because you don't know
|
---|
611 | the order of arriving config-data. E.g. if you first set the
|
---|
612 | <i>cache.cachefilename</i> and after that the <i>cache</i> itself,
|
---|
613 | the default value for cachefilename is used, because setting the
|
---|
614 | cache implies creating a new Cache instance - with its defaults.</p>
|
---|
615 | <P>
|
---|
616 | <DD><DL>
|
---|
617 | </DL>
|
---|
618 | </DD>
|
---|
619 | </DL>
|
---|
620 | <HR>
|
---|
621 |
|
---|
622 | <A NAME="isSelected(java.io.File, java.lang.String, java.io.File)"><!-- --></A><H3>
|
---|
623 | isSelected</H3>
|
---|
624 | <PRE>
|
---|
625 | public boolean <B>isSelected</B>(java.io.File basedir,
|
---|
626 | java.lang.String filename,
|
---|
627 | java.io.File file)</PRE>
|
---|
628 | <DL>
|
---|
629 | <DD>Implementation of BaseExtendSelector.isSelected().
|
---|
630 | <P>
|
---|
631 | <DD><DL>
|
---|
632 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/FileSelector.html#isSelected(java.io.File, java.lang.String, java.io.File)">isSelected</A></CODE> in interface <CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/FileSelector.html" title="interface in org.apache.tools.ant.types.selectors">FileSelector</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseExtendSelector.html#isSelected(java.io.File, java.lang.String, java.io.File)">isSelected</A></CODE> in class <CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseExtendSelector.html" title="class in org.apache.tools.ant.types.selectors">BaseExtendSelector</A></CODE></DL>
|
---|
633 | </DD>
|
---|
634 | <DD><DL>
|
---|
635 | <DT><B>Parameters:</B><DD><CODE>basedir</CODE> - as described in BaseExtendSelector<DD><CODE>filename</CODE> - as described in BaseExtendSelector<DD><CODE>file</CODE> - as described in BaseExtendSelector
|
---|
636 | <DT><B>Returns:</B><DD>as described in BaseExtendSelector</DL>
|
---|
637 | </DD>
|
---|
638 | </DL>
|
---|
639 | <HR>
|
---|
640 |
|
---|
641 | <A NAME="setUpdate(boolean)"><!-- --></A><H3>
|
---|
642 | setUpdate</H3>
|
---|
643 | <PRE>
|
---|
644 | public void <B>setUpdate</B>(boolean update)</PRE>
|
---|
645 | <DL>
|
---|
646 | <DD>Support for <i>update</i> attribute.
|
---|
647 | <P>
|
---|
648 | <DD><DL>
|
---|
649 | <DT><B>Parameters:</B><DD><CODE>update</CODE> - new value</DL>
|
---|
650 | </DD>
|
---|
651 | </DL>
|
---|
652 | <HR>
|
---|
653 |
|
---|
654 | <A NAME="setSeldirs(boolean)"><!-- --></A><H3>
|
---|
655 | setSeldirs</H3>
|
---|
656 | <PRE>
|
---|
657 | public void <B>setSeldirs</B>(boolean seldirs)</PRE>
|
---|
658 | <DL>
|
---|
659 | <DD>Support for <i>seldirs</i> attribute.
|
---|
660 | <P>
|
---|
661 | <DD><DL>
|
---|
662 | <DT><B>Parameters:</B><DD><CODE>seldirs</CODE> - new value</DL>
|
---|
663 | </DD>
|
---|
664 | </DL>
|
---|
665 | <HR>
|
---|
666 |
|
---|
667 | <A NAME="addParam(java.lang.String, java.lang.Object)"><!-- --></A><H3>
|
---|
668 | addParam</H3>
|
---|
669 | <PRE>
|
---|
670 | public void <B>addParam</B>(java.lang.String key,
|
---|
671 | java.lang.Object value)</PRE>
|
---|
672 | <DL>
|
---|
673 | <DD>Support for nested <param> tags.
|
---|
674 | <P>
|
---|
675 | <DD><DL>
|
---|
676 | <DT><B>Parameters:</B><DD><CODE>key</CODE> - the key of the parameter<DD><CODE>value</CODE> - the value of the parameter</DL>
|
---|
677 | </DD>
|
---|
678 | </DL>
|
---|
679 | <HR>
|
---|
680 |
|
---|
681 | <A NAME="addParam(org.apache.tools.ant.types.Parameter)"><!-- --></A><H3>
|
---|
682 | addParam</H3>
|
---|
683 | <PRE>
|
---|
684 | public void <B>addParam</B>(<A HREF="../../../../../../../org/apache/tools/ant/types/Parameter.html" title="class in org.apache.tools.ant.types">Parameter</A> parameter)</PRE>
|
---|
685 | <DL>
|
---|
686 | <DD>Support for nested <param> tags.
|
---|
687 | <P>
|
---|
688 | <DD><DL>
|
---|
689 | <DT><B>Parameters:</B><DD><CODE>parameter</CODE> - the parameter object</DL>
|
---|
690 | </DD>
|
---|
691 | </DL>
|
---|
692 | <HR>
|
---|
693 |
|
---|
694 | <A NAME="setParameters(org.apache.tools.ant.types.Parameter[])"><!-- --></A><H3>
|
---|
695 | setParameters</H3>
|
---|
696 | <PRE>
|
---|
697 | public void <B>setParameters</B>(<A HREF="../../../../../../../org/apache/tools/ant/types/Parameter.html" title="class in org.apache.tools.ant.types">Parameter</A>[] parameters)</PRE>
|
---|
698 | <DL>
|
---|
699 | <DD>Defined in org.apache.tools.ant.types.Parameterizable.
|
---|
700 | Overwrite implementation in superclass because only special
|
---|
701 | parameters are valid.
|
---|
702 | <P>
|
---|
703 | <DD><DL>
|
---|
704 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/Parameterizable.html#setParameters(org.apache.tools.ant.types.Parameter[])">setParameters</A></CODE> in interface <CODE><A HREF="../../../../../../../org/apache/tools/ant/types/Parameterizable.html" title="interface in org.apache.tools.ant.types">Parameterizable</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseExtendSelector.html#setParameters(org.apache.tools.ant.types.Parameter[])">setParameters</A></CODE> in class <CODE><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/BaseExtendSelector.html" title="class in org.apache.tools.ant.types.selectors">BaseExtendSelector</A></CODE></DL>
|
---|
705 | </DD>
|
---|
706 | <DD><DL>
|
---|
707 | <DT><B>Parameters:</B><DD><CODE>parameters</CODE> - the complete set of parameters for this selector<DT><B>See Also:</B><DD><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.html#addParam(java.lang.String, java.lang.Object)"><CODE>addParam(String,Object).</CODE></A></DL>
|
---|
708 | </DD>
|
---|
709 | </DL>
|
---|
710 | <HR>
|
---|
711 |
|
---|
712 | <A NAME="useParameter(org.apache.tools.ant.types.Parameter)"><!-- --></A><H3>
|
---|
713 | useParameter</H3>
|
---|
714 | <PRE>
|
---|
715 | public void <B>useParameter</B>(<A HREF="../../../../../../../org/apache/tools/ant/types/Parameter.html" title="class in org.apache.tools.ant.types">Parameter</A> parameter)</PRE>
|
---|
716 | <DL>
|
---|
717 | <DD>Support for nested <param name="" value=""/> tags.
|
---|
718 | Parameter named <i>cache</i>, <i>algorithm</i>,
|
---|
719 | <i>comparator</i> or <i>update</i> are mapped to
|
---|
720 | the respective set-Method.
|
---|
721 | Parameter which names starts with <i>cache.</i> or
|
---|
722 | <i>algorithm.</i> or <i>comparator.</i> are tried
|
---|
723 | to set on the appropriate object via its set-methods.
|
---|
724 | Other parameters are invalid and an BuildException will
|
---|
725 | be thrown.
|
---|
726 | <P>
|
---|
727 | <DD><DL>
|
---|
728 | <DT><B>Parameters:</B><DD><CODE>parameter</CODE> - Key and value as parameter object</DL>
|
---|
729 | </DD>
|
---|
730 | </DL>
|
---|
731 | <HR>
|
---|
732 |
|
---|
733 | <A NAME="tryToSetAParameter(java.lang.Object, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
---|
734 | tryToSetAParameter</H3>
|
---|
735 | <PRE>
|
---|
736 | protected void <B>tryToSetAParameter</B>(java.lang.Object obj,
|
---|
737 | java.lang.String name,
|
---|
738 | java.lang.String value)</PRE>
|
---|
739 | <DL>
|
---|
740 | <DD>Try to set a value on an object using reflection.
|
---|
741 | Helper method for easier access to IntrospectionHelper.setAttribute().
|
---|
742 | <P>
|
---|
743 | <DD><DL>
|
---|
744 | <DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object on which the attribute should be set<DD><CODE>name</CODE> - the attributename<DD><CODE>value</CODE> - the new value</DL>
|
---|
745 | </DD>
|
---|
746 | </DL>
|
---|
747 | <HR>
|
---|
748 |
|
---|
749 | <A NAME="toString()"><!-- --></A><H3>
|
---|
750 | toString</H3>
|
---|
751 | <PRE>
|
---|
752 | public java.lang.String <B>toString</B>()</PRE>
|
---|
753 | <DL>
|
---|
754 | <DD>Override Object.toString().
|
---|
755 | <P>
|
---|
756 | <DD><DL>
|
---|
757 |
|
---|
758 | <DT><B>Returns:</B><DD>information about this selector</DL>
|
---|
759 | </DD>
|
---|
760 | </DL>
|
---|
761 | <HR>
|
---|
762 |
|
---|
763 | <A NAME="getCache()"><!-- --></A><H3>
|
---|
764 | getCache</H3>
|
---|
765 | <PRE>
|
---|
766 | public <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Cache.html" title="interface in org.apache.tools.ant.types.selectors.modifiedselector">Cache</A> <B>getCache</B>()</PRE>
|
---|
767 | <DL>
|
---|
768 | <DD><DL>
|
---|
769 | </DL>
|
---|
770 | </DD>
|
---|
771 | </DL>
|
---|
772 | <HR>
|
---|
773 |
|
---|
774 | <A NAME="setCache(org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector.CacheName)"><!-- --></A><H3>
|
---|
775 | setCache</H3>
|
---|
776 | <PRE>
|
---|
777 | public void <B>setCache</B>(<A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.CacheName.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector">ModifiedSelector.CacheName</A> name)</PRE>
|
---|
778 | <DL>
|
---|
779 | <DD><DL>
|
---|
780 | </DL>
|
---|
781 | </DD>
|
---|
782 | </DL>
|
---|
783 | <HR>
|
---|
784 |
|
---|
785 | <A NAME="getAlgorithm()"><!-- --></A><H3>
|
---|
786 | getAlgorithm</H3>
|
---|
787 | <PRE>
|
---|
788 | public <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Algorithm.html" title="interface in org.apache.tools.ant.types.selectors.modifiedselector">Algorithm</A> <B>getAlgorithm</B>()</PRE>
|
---|
789 | <DL>
|
---|
790 | <DD><DL>
|
---|
791 | </DL>
|
---|
792 | </DD>
|
---|
793 | </DL>
|
---|
794 | <HR>
|
---|
795 |
|
---|
796 | <A NAME="setAlgorithm(org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector.AlgorithmName)"><!-- --></A><H3>
|
---|
797 | setAlgorithm</H3>
|
---|
798 | <PRE>
|
---|
799 | public void <B>setAlgorithm</B>(<A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.AlgorithmName.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector">ModifiedSelector.AlgorithmName</A> name)</PRE>
|
---|
800 | <DL>
|
---|
801 | <DD><DL>
|
---|
802 | </DL>
|
---|
803 | </DD>
|
---|
804 | </DL>
|
---|
805 | <HR>
|
---|
806 |
|
---|
807 | <A NAME="getComparator()"><!-- --></A><H3>
|
---|
808 | getComparator</H3>
|
---|
809 | <PRE>
|
---|
810 | public java.util.Comparator <B>getComparator</B>()</PRE>
|
---|
811 | <DL>
|
---|
812 | <DD><DL>
|
---|
813 | </DL>
|
---|
814 | </DD>
|
---|
815 | </DL>
|
---|
816 | <HR>
|
---|
817 |
|
---|
818 | <A NAME="setComparator(org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector.ComparatorName)"><!-- --></A><H3>
|
---|
819 | setComparator</H3>
|
---|
820 | <PRE>
|
---|
821 | public void <B>setComparator</B>(<A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.ComparatorName.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector">ModifiedSelector.ComparatorName</A> name)</PRE>
|
---|
822 | <DL>
|
---|
823 | <DD><DL>
|
---|
824 | </DL>
|
---|
825 | </DD>
|
---|
826 | </DL>
|
---|
827 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
828 | <HR>
|
---|
829 |
|
---|
830 |
|
---|
831 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
832 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
833 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
834 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
835 | <TR>
|
---|
836 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
837 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
838 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
839 | <TR ALIGN="center" VALIGN="top">
|
---|
840 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
841 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
842 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
843 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
844 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
845 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
846 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
847 | </TR>
|
---|
848 | </TABLE>
|
---|
849 | </TD>
|
---|
850 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
851 | </EM>
|
---|
852 | </TD>
|
---|
853 | </TR>
|
---|
854 |
|
---|
855 | <TR>
|
---|
856 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
857 | <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector"><B>PREV CLASS</B></A>
|
---|
858 | <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/ModifiedSelector.AlgorithmName.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
859 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
860 | <A HREF="../../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
861 | <A HREF="ModifiedSelector.html" target="_top"><B>NO FRAMES</B></A>
|
---|
862 | <SCRIPT type="text/javascript">
|
---|
863 | <!--
|
---|
864 | if(window==top) {
|
---|
865 | document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
866 | }
|
---|
867 | //-->
|
---|
868 | </SCRIPT>
|
---|
869 | <NOSCRIPT>
|
---|
870 | <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
871 | </NOSCRIPT>
|
---|
872 |
|
---|
873 | </FONT></TD>
|
---|
874 | </TR>
|
---|
875 | <TR>
|
---|
876 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
877 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_org.apache.tools.ant.types.selectors.BaseExtendSelector">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
878 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
879 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
880 | </TR>
|
---|
881 | </TABLE>
|
---|
882 | <A NAME="skip-navbar_bottom"></A>
|
---|
883 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
884 |
|
---|
885 | <HR>
|
---|
886 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
887 | </BODY>
|
---|
888 | </HTML>
|
---|