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 | GlobPatternMapper (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.util.GlobPatternMapper 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="GlobPatternMapper (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/util/FlatFileNameMapper.html" title="class in org.apache.tools.ant.util"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../org/apache/tools/ant/util/IdentityMapper.html" title="class in org.apache.tools.ant.util"><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="GlobPatternMapper.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: NESTED | <A HREF="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <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.util</FONT>
|
---|
85 | <BR>
|
---|
86 | Class GlobPatternMapper</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.util.GlobPatternMapper</B>
|
---|
90 | </PRE>
|
---|
91 | <DL>
|
---|
92 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/tools/ant/util/FileNameMapper.html" title="interface in org.apache.tools.ant.util">FileNameMapper</A></DD>
|
---|
93 | </DL>
|
---|
94 | <DL>
|
---|
95 | <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/apache/tools/ant/util/PackageNameMapper.html" title="class in org.apache.tools.ant.util">PackageNameMapper</A>, <A HREF="../../../../../org/apache/tools/ant/util/UnPackageNameMapper.html" title="class in org.apache.tools.ant.util">UnPackageNameMapper</A></DD>
|
---|
96 | </DL>
|
---|
97 | <HR>
|
---|
98 | <DL>
|
---|
99 | <DT>public class <B>GlobPatternMapper</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/apache/tools/ant/util/FileNameMapper.html" title="interface in org.apache.tools.ant.util">FileNameMapper</A></DL>
|
---|
100 |
|
---|
101 | <P>
|
---|
102 | Implementation of FileNameMapper that does simple wildcard pattern
|
---|
103 | replacements.
|
---|
104 |
|
---|
105 | <p>This does simple translations like *.foo -> *.bar where the
|
---|
106 | prefix to .foo will be left unchanged. It only handles a single *
|
---|
107 | character, use regular expressions for more complicated
|
---|
108 | situations.</p>
|
---|
109 |
|
---|
110 | <p>This is one of the more useful Mappers, it is used by javac for
|
---|
111 | example.</p>
|
---|
112 | <P>
|
---|
113 |
|
---|
114 | <P>
|
---|
115 | <HR>
|
---|
116 |
|
---|
117 | <P>
|
---|
118 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
119 |
|
---|
120 |
|
---|
121 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
122 |
|
---|
123 | <A NAME="field_summary"><!-- --></A>
|
---|
124 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
125 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
126 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
127 | <B>Field Summary</B></FONT></TD>
|
---|
128 | </TR>
|
---|
129 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
130 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
131 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
132 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#fromPostfix">fromPostfix</A></B></CODE>
|
---|
133 |
|
---|
134 | <BR>
|
---|
135 | Part of "from" pattern after the *.</TD>
|
---|
136 | </TR>
|
---|
137 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
138 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
139 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
140 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#fromPrefix">fromPrefix</A></B></CODE>
|
---|
141 |
|
---|
142 | <BR>
|
---|
143 | Part of "from" pattern before the *.</TD>
|
---|
144 | </TR>
|
---|
145 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
146 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
147 | <CODE>protected int</CODE></FONT></TD>
|
---|
148 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#postfixLength">postfixLength</A></B></CODE>
|
---|
149 |
|
---|
150 | <BR>
|
---|
151 | Length of the postfix ("from" pattern).</TD>
|
---|
152 | </TR>
|
---|
153 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
154 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
155 | <CODE>protected int</CODE></FONT></TD>
|
---|
156 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#prefixLength">prefixLength</A></B></CODE>
|
---|
157 |
|
---|
158 | <BR>
|
---|
159 | Length of the prefix ("from" pattern).</TD>
|
---|
160 | </TR>
|
---|
161 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
162 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
163 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
164 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#toPostfix">toPostfix</A></B></CODE>
|
---|
165 |
|
---|
166 | <BR>
|
---|
167 | Part of "to" pattern after the *.</TD>
|
---|
168 | </TR>
|
---|
169 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
170 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
171 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
172 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#toPrefix">toPrefix</A></B></CODE>
|
---|
173 |
|
---|
174 | <BR>
|
---|
175 | Part of "to" pattern before the *.</TD>
|
---|
176 | </TR>
|
---|
177 | </TABLE>
|
---|
178 |
|
---|
179 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
180 |
|
---|
181 | <A NAME="constructor_summary"><!-- --></A>
|
---|
182 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
183 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
184 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
185 | <B>Constructor Summary</B></FONT></TD>
|
---|
186 | </TR>
|
---|
187 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
188 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#GlobPatternMapper()">GlobPatternMapper</A></B>()</CODE>
|
---|
189 |
|
---|
190 | <BR>
|
---|
191 | </TD>
|
---|
192 | </TR>
|
---|
193 | </TABLE>
|
---|
194 |
|
---|
195 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
196 |
|
---|
197 | <A NAME="method_summary"><!-- --></A>
|
---|
198 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
199 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
200 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
201 | <B>Method Summary</B></FONT></TD>
|
---|
202 | </TR>
|
---|
203 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
204 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
205 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
206 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#extractVariablePart(java.lang.String)">extractVariablePart</A></B>(java.lang.String name)</CODE>
|
---|
207 |
|
---|
208 | <BR>
|
---|
209 | Returns the part of the given string that matches the * in the
|
---|
210 | "from" pattern.</TD>
|
---|
211 | </TR>
|
---|
212 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
213 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
214 | <CODE> java.lang.String[]</CODE></FONT></TD>
|
---|
215 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#mapFileName(java.lang.String)">mapFileName</A></B>(java.lang.String sourceFileName)</CODE>
|
---|
216 |
|
---|
217 | <BR>
|
---|
218 | Returns null if the source file name doesn't match the
|
---|
219 | "from" pattern, an one-element array containing the
|
---|
220 | translated file otherwise.</TD>
|
---|
221 | </TR>
|
---|
222 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
223 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
224 | <CODE> void</CODE></FONT></TD>
|
---|
225 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#setCaseSensitive(boolean)">setCaseSensitive</A></B>(boolean caseSensitive)</CODE>
|
---|
226 |
|
---|
227 | <BR>
|
---|
228 | Attribute specifing whether to ignore the case difference
|
---|
229 | in the names.</TD>
|
---|
230 | </TR>
|
---|
231 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
232 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
233 | <CODE> void</CODE></FONT></TD>
|
---|
234 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#setFrom(java.lang.String)">setFrom</A></B>(java.lang.String from)</CODE>
|
---|
235 |
|
---|
236 | <BR>
|
---|
237 | Sets the "from" pattern.</TD>
|
---|
238 | </TR>
|
---|
239 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
240 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
241 | <CODE> void</CODE></FONT></TD>
|
---|
242 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#setHandleDirSep(boolean)">setHandleDirSep</A></B>(boolean handleDirSep)</CODE>
|
---|
243 |
|
---|
244 | <BR>
|
---|
245 | Attribute specifing whether to ignore the difference
|
---|
246 | between / and \ (the two common directory characters).</TD>
|
---|
247 | </TR>
|
---|
248 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
249 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
250 | <CODE> void</CODE></FONT></TD>
|
---|
251 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/util/GlobPatternMapper.html#setTo(java.lang.String)">setTo</A></B>(java.lang.String to)</CODE>
|
---|
252 |
|
---|
253 | <BR>
|
---|
254 | Sets the "to" pattern.</TD>
|
---|
255 | </TR>
|
---|
256 | </TABLE>
|
---|
257 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
258 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
259 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
260 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
261 | </TR>
|
---|
262 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
263 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
264 | </TR>
|
---|
265 | </TABLE>
|
---|
266 |
|
---|
267 | <P>
|
---|
268 |
|
---|
269 | <!-- ============ FIELD DETAIL =========== -->
|
---|
270 |
|
---|
271 | <A NAME="field_detail"><!-- --></A>
|
---|
272 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
273 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
274 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
275 | <B>Field Detail</B></FONT></TD>
|
---|
276 | </TR>
|
---|
277 | </TABLE>
|
---|
278 |
|
---|
279 | <A NAME="fromPrefix"><!-- --></A><H3>
|
---|
280 | fromPrefix</H3>
|
---|
281 | <PRE>
|
---|
282 | protected java.lang.String <B>fromPrefix</B></PRE>
|
---|
283 | <DL>
|
---|
284 | <DD>Part of "from" pattern before the *.
|
---|
285 | <P>
|
---|
286 | <DL>
|
---|
287 | </DL>
|
---|
288 | </DL>
|
---|
289 | <HR>
|
---|
290 |
|
---|
291 | <A NAME="fromPostfix"><!-- --></A><H3>
|
---|
292 | fromPostfix</H3>
|
---|
293 | <PRE>
|
---|
294 | protected java.lang.String <B>fromPostfix</B></PRE>
|
---|
295 | <DL>
|
---|
296 | <DD>Part of "from" pattern after the *.
|
---|
297 | <P>
|
---|
298 | <DL>
|
---|
299 | </DL>
|
---|
300 | </DL>
|
---|
301 | <HR>
|
---|
302 |
|
---|
303 | <A NAME="prefixLength"><!-- --></A><H3>
|
---|
304 | prefixLength</H3>
|
---|
305 | <PRE>
|
---|
306 | protected int <B>prefixLength</B></PRE>
|
---|
307 | <DL>
|
---|
308 | <DD>Length of the prefix ("from" pattern).
|
---|
309 | <P>
|
---|
310 | <DL>
|
---|
311 | </DL>
|
---|
312 | </DL>
|
---|
313 | <HR>
|
---|
314 |
|
---|
315 | <A NAME="postfixLength"><!-- --></A><H3>
|
---|
316 | postfixLength</H3>
|
---|
317 | <PRE>
|
---|
318 | protected int <B>postfixLength</B></PRE>
|
---|
319 | <DL>
|
---|
320 | <DD>Length of the postfix ("from" pattern).
|
---|
321 | <P>
|
---|
322 | <DL>
|
---|
323 | </DL>
|
---|
324 | </DL>
|
---|
325 | <HR>
|
---|
326 |
|
---|
327 | <A NAME="toPrefix"><!-- --></A><H3>
|
---|
328 | toPrefix</H3>
|
---|
329 | <PRE>
|
---|
330 | protected java.lang.String <B>toPrefix</B></PRE>
|
---|
331 | <DL>
|
---|
332 | <DD>Part of "to" pattern before the *.
|
---|
333 | <P>
|
---|
334 | <DL>
|
---|
335 | </DL>
|
---|
336 | </DL>
|
---|
337 | <HR>
|
---|
338 |
|
---|
339 | <A NAME="toPostfix"><!-- --></A><H3>
|
---|
340 | toPostfix</H3>
|
---|
341 | <PRE>
|
---|
342 | protected java.lang.String <B>toPostfix</B></PRE>
|
---|
343 | <DL>
|
---|
344 | <DD>Part of "to" pattern after the *.
|
---|
345 | <P>
|
---|
346 | <DL>
|
---|
347 | </DL>
|
---|
348 | </DL>
|
---|
349 |
|
---|
350 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
351 |
|
---|
352 | <A NAME="constructor_detail"><!-- --></A>
|
---|
353 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
354 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
355 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
356 | <B>Constructor Detail</B></FONT></TD>
|
---|
357 | </TR>
|
---|
358 | </TABLE>
|
---|
359 |
|
---|
360 | <A NAME="GlobPatternMapper()"><!-- --></A><H3>
|
---|
361 | GlobPatternMapper</H3>
|
---|
362 | <PRE>
|
---|
363 | public <B>GlobPatternMapper</B>()</PRE>
|
---|
364 | <DL>
|
---|
365 | </DL>
|
---|
366 |
|
---|
367 | <!-- ============ METHOD DETAIL ========== -->
|
---|
368 |
|
---|
369 | <A NAME="method_detail"><!-- --></A>
|
---|
370 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
371 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
372 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
373 | <B>Method Detail</B></FONT></TD>
|
---|
374 | </TR>
|
---|
375 | </TABLE>
|
---|
376 |
|
---|
377 | <A NAME="setHandleDirSep(boolean)"><!-- --></A><H3>
|
---|
378 | setHandleDirSep</H3>
|
---|
379 | <PRE>
|
---|
380 | public void <B>setHandleDirSep</B>(boolean handleDirSep)</PRE>
|
---|
381 | <DL>
|
---|
382 | <DD>Attribute specifing whether to ignore the difference
|
---|
383 | between / and \ (the two common directory characters).
|
---|
384 | <P>
|
---|
385 | <DD><DL>
|
---|
386 | </DL>
|
---|
387 | </DD>
|
---|
388 | <DD><DL>
|
---|
389 | <DT><B>Parameters:</B><DD><CODE>handleDirSep</CODE> - a boolean, default is false.<DT><B>Since:</B></DT>
|
---|
390 | <DD>Ant 1.6.3</DD>
|
---|
391 | </DL>
|
---|
392 | </DD>
|
---|
393 | </DL>
|
---|
394 | <HR>
|
---|
395 |
|
---|
396 | <A NAME="setCaseSensitive(boolean)"><!-- --></A><H3>
|
---|
397 | setCaseSensitive</H3>
|
---|
398 | <PRE>
|
---|
399 | public void <B>setCaseSensitive</B>(boolean caseSensitive)</PRE>
|
---|
400 | <DL>
|
---|
401 | <DD>Attribute specifing whether to ignore the case difference
|
---|
402 | in the names.
|
---|
403 | <P>
|
---|
404 | <DD><DL>
|
---|
405 | </DL>
|
---|
406 | </DD>
|
---|
407 | <DD><DL>
|
---|
408 | <DT><B>Parameters:</B><DD><CODE>caseSensitive</CODE> - a boolean, default is false.<DT><B>Since:</B></DT>
|
---|
409 | <DD>Ant 1.6.3</DD>
|
---|
410 | </DL>
|
---|
411 | </DD>
|
---|
412 | </DL>
|
---|
413 | <HR>
|
---|
414 |
|
---|
415 | <A NAME="setFrom(java.lang.String)"><!-- --></A><H3>
|
---|
416 | setFrom</H3>
|
---|
417 | <PRE>
|
---|
418 | public void <B>setFrom</B>(java.lang.String from)</PRE>
|
---|
419 | <DL>
|
---|
420 | <DD>Sets the "from" pattern. Required.
|
---|
421 | <P>
|
---|
422 | <DD><DL>
|
---|
423 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/util/FileNameMapper.html#setFrom(java.lang.String)">setFrom</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/tools/ant/util/FileNameMapper.html" title="interface in org.apache.tools.ant.util">FileNameMapper</A></CODE></DL>
|
---|
424 | </DD>
|
---|
425 | <DD><DL>
|
---|
426 | <DT><B>Parameters:</B><DD><CODE>from</CODE> - a string</DL>
|
---|
427 | </DD>
|
---|
428 | </DL>
|
---|
429 | <HR>
|
---|
430 |
|
---|
431 | <A NAME="setTo(java.lang.String)"><!-- --></A><H3>
|
---|
432 | setTo</H3>
|
---|
433 | <PRE>
|
---|
434 | public void <B>setTo</B>(java.lang.String to)</PRE>
|
---|
435 | <DL>
|
---|
436 | <DD>Sets the "to" pattern. Required.
|
---|
437 | <P>
|
---|
438 | <DD><DL>
|
---|
439 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/util/FileNameMapper.html#setTo(java.lang.String)">setTo</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/tools/ant/util/FileNameMapper.html" title="interface in org.apache.tools.ant.util">FileNameMapper</A></CODE></DL>
|
---|
440 | </DD>
|
---|
441 | <DD><DL>
|
---|
442 | <DT><B>Parameters:</B><DD><CODE>to</CODE> - a string</DL>
|
---|
443 | </DD>
|
---|
444 | </DL>
|
---|
445 | <HR>
|
---|
446 |
|
---|
447 | <A NAME="mapFileName(java.lang.String)"><!-- --></A><H3>
|
---|
448 | mapFileName</H3>
|
---|
449 | <PRE>
|
---|
450 | public java.lang.String[] <B>mapFileName</B>(java.lang.String sourceFileName)</PRE>
|
---|
451 | <DL>
|
---|
452 | <DD>Returns null if the source file name doesn't match the
|
---|
453 | "from" pattern, an one-element array containing the
|
---|
454 | translated file otherwise.
|
---|
455 | <P>
|
---|
456 | <DD><DL>
|
---|
457 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/util/FileNameMapper.html#mapFileName(java.lang.String)">mapFileName</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/tools/ant/util/FileNameMapper.html" title="interface in org.apache.tools.ant.util">FileNameMapper</A></CODE></DL>
|
---|
458 | </DD>
|
---|
459 | <DD><DL>
|
---|
460 | <DT><B>Parameters:</B><DD><CODE>sourceFileName</CODE> - the filename to map
|
---|
461 | <DT><B>Returns:</B><DD>a list of converted filenames</DL>
|
---|
462 | </DD>
|
---|
463 | </DL>
|
---|
464 | <HR>
|
---|
465 |
|
---|
466 | <A NAME="extractVariablePart(java.lang.String)"><!-- --></A><H3>
|
---|
467 | extractVariablePart</H3>
|
---|
468 | <PRE>
|
---|
469 | protected java.lang.String <B>extractVariablePart</B>(java.lang.String name)</PRE>
|
---|
470 | <DL>
|
---|
471 | <DD>Returns the part of the given string that matches the * in the
|
---|
472 | "from" pattern.
|
---|
473 | <P>
|
---|
474 | <DD><DL>
|
---|
475 | </DL>
|
---|
476 | </DD>
|
---|
477 | <DD><DL>
|
---|
478 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - the source file name
|
---|
479 | <DT><B>Returns:</B><DD>the variable part of the name</DL>
|
---|
480 | </DD>
|
---|
481 | </DL>
|
---|
482 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
483 | <HR>
|
---|
484 |
|
---|
485 |
|
---|
486 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
487 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
488 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
489 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
490 | <TR>
|
---|
491 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
492 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
493 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
494 | <TR ALIGN="center" VALIGN="top">
|
---|
495 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
496 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
497 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
498 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
499 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
500 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
501 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
502 | </TR>
|
---|
503 | </TABLE>
|
---|
504 | </TD>
|
---|
505 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
506 | </EM>
|
---|
507 | </TD>
|
---|
508 | </TR>
|
---|
509 |
|
---|
510 | <TR>
|
---|
511 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
512 | <A HREF="../../../../../org/apache/tools/ant/util/FlatFileNameMapper.html" title="class in org.apache.tools.ant.util"><B>PREV CLASS</B></A>
|
---|
513 | <A HREF="../../../../../org/apache/tools/ant/util/IdentityMapper.html" title="class in org.apache.tools.ant.util"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
514 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
515 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
516 | <A HREF="GlobPatternMapper.html" target="_top"><B>NO FRAMES</B></A>
|
---|
517 | <SCRIPT type="text/javascript">
|
---|
518 | <!--
|
---|
519 | if(window==top) {
|
---|
520 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
521 | }
|
---|
522 | //-->
|
---|
523 | </SCRIPT>
|
---|
524 | <NOSCRIPT>
|
---|
525 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
526 | </NOSCRIPT>
|
---|
527 |
|
---|
528 | </FONT></TD>
|
---|
529 | </TR>
|
---|
530 | <TR>
|
---|
531 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
532 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
533 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
534 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
535 | </TR>
|
---|
536 | </TABLE>
|
---|
537 | <A NAME="skip-navbar_bottom"></A>
|
---|
538 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
539 |
|
---|
540 | <HR>
|
---|
541 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
542 | </BODY>
|
---|
543 | </HTML>
|
---|