ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Mark Bram <>
Subject Delete files and subdirectories, but NOT the base dir
Date Tue, 12 Oct 2004 07:46:31 GMT
Hi All!

I want to recursively delete everything inside build, but leaving build 
alone. This is what I have so far.

<delete includeEmptyDirs="true" >
<fileset dir="${build}" defaultexcludes="no" />

Is there a way to do this other than deleting and re-creating the whole 
<delete dir="${build}" />
<mkdir dir="${build}" />

Advice would be most welcome!


Robert Mark Bram
B.Comp.(Systems Development/Business Systems)
Doctor of Philosophy Student

School of Network Computing
Faculty of Information Technology
Monash University
Peninsula Campus
McMahons Rd
Frankston, VIC 3199

Phone:  61 3 9904 4394
Facsimile:  61 3 9904 4124

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

View raw message