Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
R?f. : RE : How to delete directory using <ftp > ?

R?f. : RE : How to delete directory using <ftp > ?

2003-03-28       - By claude.lefebvre@(protected)


user-unsubscribe@(protected)




"ALIA-SC, David" <David.ALIA-SC@(protected)> on 2003-03-28 11:36:48

Veuillez r?pondre ? "Ant Users List" <user@(protected)>

Pour : Ant Users List <user@(protected)>
cc :
Objet :     RE : How to delete directory using <ftp> ?

Thanks Robert,

That's what I needed.

David

-----Message d'origine-----
De : Robert r. Sanders [mailto:robert.sanders@(protected)]
Envoy? : vendredi 28 mars 2003 17:12
? : Ant Users List
Objet : Re: How to delete directory using <ftp> ?


Not sure how to do so with the ftp task included with Ant.  check out
our refactoring of the code at  http://oss.ipov.org/iftp-ant/  it makes
the task definitions much easier, including the ablity to delete entire
directory trees if you and.  It is available under the Apache license.
Internally it uses the same NetComponents classes that the Ant ftp does,
just with a easier to use set of task definitions.

ALIA-SC, David wrote:

>Hi,
>
>The doc says :
>
>"As you've probably guessed by now, you use nested fileset elements to
>select the files to delete from the remote FTP server. Again, the
>filesets are relative to the remote directory, not a local directory.
>In fact, the dir attribute of the fileset is ignored completely. "
>
>So how can I delete a remote directory ?
>
>(I've tried <fileset dir="${dir}"/> in the <ftp action="del"../> but it
>only deletes files in the ${dir} directory, not the directory
>itself...)
>
>David
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@(protected)
>For additional commands, e-mail: user-help@(protected)
>
>
>
>
--
   Robert r. Sanders
   Chief Technologist
   iPOV
   www.ipov.net



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)












©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.