ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eloise Friedman" <>
Subject How to delete directory tree but not main directory.
Date Wed, 09 Oct 2002 09:32:41 GMT

Hello to you all.
For one of my clean tasks I want to delete a directory tree, but leave the base directory.
For example, my file system looks like this:


I want to delete all the files and directories under bin, but not the bin directory itself.

All my experiments, including using include/exclude in <fileset>, deleteEmptyDir etc
have either removed the bin directory itself, or left empty dirs under bin, which I don't
want.I don't want to specify all the directory names under bin, because then if we add a directory
I need to modify the build file.

Sadly enough, I saw on the web that the "bug" which didn't remove the base directory for the
delete process has been fixed for release 1.4, but that's what I need!!

Thank you all for your time.







The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the 
sender immediately and do not disclose the contents to any one or make copies.

** eSafe scanned this email for viruses, vandals and malicious content **

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

View raw message