A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
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
I agree. Here's the link:
subject: Ant task to delete directory contents
is it a bug or somethingelse?
How to delete a directory in unix box using ant
java.util.zip.ZipException: error in opening zip file
Undoing a Clean
Delete everything in directory except directory, how ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015