Suppose I have
/Root
/A
/to_delete
/not_to_delete
/B
/to_delete
/not_to_delete
/C
/to_delete
/not_to_delete
How to delete those folders called “to_delete” in Ant?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please check this :
http://ant.apache.org/manual/Tasks/delete.html
If you don’t want to specify A, B, C you will have to do some nasty trict for recursively searcing all subdirectories. I have done this with a custom java script.
If you can specify A,B,C though you just need something :