Deleting a directory on a remote server using ANT
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jacob_Thomas
Posted On:   Wednesday, August 6, 2003 03:05 PM

Hi, I would like to delete a directory on a remote server using the ANT FTP task. Is this possible. I can make directories, tranfer and recieve files but I just cant figure a way to delete a directory. I can delete files within the directory. but cant delete the directory itself. Searching the net,I found an action called as "RMDIR". I tried using this and I get an error stating " rmdir is not a legal value for this attribute" which makes me think if there is a patch or the version i use does not support this feature. I am using Apache Ant version 1.5.3. Thanks in advance. Jacob    More>>

Hi,
I would like to delete a directory on a remote server using the ANT FTP task. Is this possible. I can make directories, tranfer and recieve files but I just cant figure a way to delete a directory. I can delete files within the directory.
but cant delete the directory itself.

Searching the net,I found an action called as "RMDIR". I tried using this and I get an error stating

" rmdir is not a legal value for this attribute"

which makes me think if there is a patch or the version i use does not support this feature. I am using Apache Ant version 1.5.3.

Thanks in advance.

Jacob

   <<Less

Re: Deleting a directory on a remote server using ANT

Posted By:   Wildeman_Vargas  
Posted On:   Tuesday, October 21, 2003 08:11 AM

Hi Jacob,

I need to delete files using the ftp task "del" but im having problems with it. Can yo tell me how to use the "del" action for the ftp task?

best regards
Wil.

Re: Deleting a directory on a remote server using ANT

Posted By:   Anonymous  
Posted On:   Thursday, August 7, 2003 03:51 AM

This feature is included since version 1.28 of FTP.java (2002-09-23). (Manual updated on same day). I donĀ“t know into which branch this feature was introduced, but a nightly build should work.
About | Sitemap | Contact