ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Mark Bram <relaxed...@optusnet.com.au>
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" />
</delete>

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

Advice would be most welcome!

Rob
:)

-- 
Robert Mark Bram
http://phd.netcomp.monash.edu.au/RobertMarkBram/
B.Comp.(Systems Development/Business Systems)
B.Net.Comp.(Hons)
Doctor of Philosophy Student

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

Phone:  61 3 9904 4394
Facsimile:  61 3 9904 4124
Email: robert.bram@infotech.monash.edu.au

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message