File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Ant, Maven and Other Build Tools
Ant task to delete directory contents
Joined: Feb 22, 2004
Jan 09, 2008 10:12:00
I normally use an
task to delete a directory like this:
But what I really need is a task to delete all the files and folders in a directory but not the directory itself.
Is there such an animal?
Joined: Jul 11, 2001
Jan 09, 2008 11:27:00
delete includeemptydirs="true"> <fileset dir="build" includes="**/*"/> </delete>
deletes all files and subdirectories of build, without build itself.
GenRocket - Experts at Building Test Data
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Ant task to delete directory contents
is it a bug or somethingelse?
Undoing a Clean
Delete everything in directory except directory, how ?
How to delete a directory in unix box using ant
java.util.zip.ZipException: error in opening zip file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014