ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rubun Tang <rt...@algorithmics.com>
Subject RE: recursive deletion using ftp task
Date Thu, 24 Jan 2002 21:08:29 GMT
Kevin,

When you say removing a directory on the ftp server, how do you do it? Do
you ftp to the server, and use the ftp task to delete the directory, (e.g.
<write>rm -r target ), or do you ftp to the server, and call another ant
script to delete it?

Rubun

-----Original Message-----
From: kwong@royalsunalliance.co.nz [mailto:kwong@royalsunalliance.co.nz]
Sent: Wednesday, January 23, 2002 9:45 PM
To: Ant Users List
Subject: RE: recursive deletion using ftp task




Rubun,

I downloaded the latest version of Ant (1.4.1) and it fixed the recursive
delete
problem.  However, there is still no way to remove a directory on the ftp
server
using Ant.  Have you got a work around?

BTW, thank for you reply.

Regards,
Kevin Wong.






Rubun Tang <rtang@algorithmics.com> on 24/01/2002 11:07:27 AM

Please respond to "Ant Users List" <ant-user@jakarta.apache.org>

To:   'Ant Users List' <ant-user@jakarta.apache.org>
cc:
bcc:  Kevin Wong/R&SA/NZ
Subject:  RE: recursive deletion using ftp task



Kevin,

I'm not sure what you really want to do. Do you try to delete files
recursively through another ant file in the remote server? Have you tried
using that build.xml locally and see if it works? Please provide more
details or maybe a piece of code so that we can take a look at.

Rubun T

-----Original Message-----
From: kwong@royalsunalliance.co.nz [mailto:kwong@royalsunalliance.co.nz]
Sent: Tuesday, January 22, 2002 10:34 PM
To: ant-user@jakarta.apache.org
Subject: recursive deletion using ftp task




Hi,

I am trying to use the ftp task to recursive delete files and folder on a
ftp
server.  I am using a fileset to specify the files to be deleted.  However,
if
wildcard is used to specifiy recursive folders in the include of the
fileset,
the task will not work.

The task works fine deleting multiple files in a single directory, but not
recursively into the sub-directories.

I also tried using multiple includes for the fileset.  This turns out that
only
the last include in the list will be executed.

Moreover, I cannot find a way to remove a directory on the server using the
ftp
task.  Are there anyway to do this?

Any help would be appreciated.


TIA
Kevin Wong.




**********************************************************************
CAUTION - This message is intended for the addressee named above. It
may contain privileged or confidential information. If you are not the
intended recipient of this message you must not use, copy, distribute
or disclose it to anyone.
**********************************************************************


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


****************************************************************************
The following message has been automatically added by the Internet mail
gateway to comply with a Royal & SunAlliance IT Security requirement.

"This e-mail has arrived via the Internet and, therefore you should be
cautious about its origin and content. Replies which contain sensitive
information or legal/contractual obligations are particularly vulnerable.
In these cases you should not reply unless you are authorised to do so,
and adequate encryption is employed."

If you have any questions, please contact postmaster@royalsunalliance.co.nz
or the Helpdesk on 09 357 2383
****************************************************************************










**********************************************************************
CAUTION - This message is intended for the addressee named above. It
may contain privileged or confidential information. If you are not the 
intended recipient of this message you must not use, copy, distribute 
or disclose it to anyone.
**********************************************************************


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message