ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cohen" <>
Subject RE: RE : How to delete directory using <ftp> ?
Date Fri, 28 Mar 2003 16:50:21 GMT
That sounds like a good idea - however, bear in mind that in ant 1.6+, your internal references
to NetComponents classes will have to be rewritten to use the new jakarta-commons/net classes,
as this package is being replaced in 1.6.  However, it's the same package, so the only thing
you should have to change is the package names.  But I wanted you to be aware of it.

-----Original Message-----
From: peter reilly [] 
Sent: Friday, March 28, 2003 10:48 AM
To: Ant Users List; ALIA-SC, David
Subject: Re: RE : How to delete directory using <ftp> ?

these tasks look neat, why dont you get
the ant people to add a pointer to them on the
external projects page.
Also, you should provide a
in the jar so that people can do

<taskdef resource=""


On Friday 28 March 2003 16:36, ALIA-SC, David wrote:
> Thanks Robert,
> That's what I needed.
> David
> -----Message d'origine-----
> De : Robert r. Sanders [] 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  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:
> >For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message