A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. 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