Lines 67-73
Link Here
|
67 |
<td valign="top">the ftp action to perform, defaulting to "send". |
67 |
<td valign="top">the ftp action to perform, defaulting to "send". |
68 |
Currently supports "put", "get", |
68 |
Currently supports "put", "get", |
69 |
"del", "list", "chmod", |
69 |
"del", "list", "chmod", |
70 |
"mkdir" and "rmdir".</td> |
70 |
"mkdir", "rmdir" and |
|
|
71 |
"deltree".</td> |
71 |
<td valign="top" align="center">No</td> |
72 |
<td valign="top" align="center">No</td> |
72 |
</tr> |
73 |
</tr> |
73 |
<tr> |
74 |
<tr> |
Lines 307-317
Link Here
|
307 |
</fileset> |
308 |
</fileset> |
308 |
</pre> |
309 |
</pre> |
309 |
|
310 |
|
|
|
311 |
or better invoke once the <code><ftp></code> task with |
312 |
<code>"deltree"</code> action. |
313 |
</p> |
314 |
<p> |
310 |
The directory specified in the <code>remotedir</code> parameter is never |
315 |
The directory specified in the <code>remotedir</code> parameter is never |
311 |
selected for remove, so if you need to remove it, specify its parent in |
316 |
selected for remove, so if you need to remove it, specify its parent in |
312 |
<code>remotedir</code> parameter and include it in the |
317 |
<code>remotedir</code> parameter and include it in the |
313 |
<code><fileset></code> pattern, like <code>"somedir/**"</code>. |
318 |
<code><fileset></code> pattern, like <code>"somedir/**"</code>. |
314 |
</p> |
319 |
</p> |
|
|
320 |
|
321 |
<h3>Deleting Trees</h3> |
322 |
<p>The <code>"deltree"</code> action is a pseudo action used as a |
323 |
commodity to delete, with only one task, an entire tree of files and |
324 |
directories. |
325 |
This action is internally exploded into a <code>"delete"</code> and |
326 |
then a <code>"rmdir"</code> actions using the same |
327 |
<code>remotedir</code> and filesets. |
328 |
To be sure to succeed you must be sure the filesets patterns selects all the |
329 |
files and directories in the trees you want to delete. |
330 |
All the recommendations of <code>"rmdir"</code> actions apply. |
331 |
</p> |
332 |
<p> |
333 |
The advantage of using <code>"deltree"</code> action instead of |
334 |
<code>"delete"</code> and then <code>"rmdir"</code>, |
335 |
other than writing only once the <code><ftp></code> task, is that |
336 |
the scanning of <code>remotedir</code> for matching with filesets patterns |
337 |
is done only once, which may be a bonus for large trees, large filesets |
338 |
and slow servers or connections. |
339 |
</p> |
340 |
|
315 |
<hr> |
341 |
<hr> |
316 |
<p align="center">Copyright © 2000-2002 Apache Software Foundation. All rights |
342 |
<p align="center">Copyright © 2000-2002 Apache Software Foundation. All rights |
317 |
Reserved.</p> |
343 |
Reserved.</p> |