ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Al Le" <>
Subject How to delete all files in a dirset
Date Thu, 20 Oct 2016 10:08:15 GMT

I have a dirset defined in my script. How can I delete all files contained in that dirset?

Actually, my goal is to delete the dirs from the dirset, including all the files contained
in them. But since the delete task does not delete non empty dirs, I'd first delete all the
files and, in a second call to 'delete', I'd delete the dirs.

But how can I delete the files?


<!-- Define the set of dirs to delete so that id can be referenced by the id -->
<dirset dir="${srcDir}" id="">
    <include name="*_to-delete"/>

<!-- Delete all the files contained in '' -->
    <!-- What should I specify here? -->


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

View raw message