I want to delete all directories and subdirectories under a root directory that are contain "tmp" in their names. This should include any .svn files too. My first guess is to use
<delete>
<dirset dir="${root}">
<include name="**/*tmp*" />
</dirset>
</delete>
This does not seem to work as you can't nest a dirset
in a delete
tag.
Is this a correct approach, or should I be doing something else?
- ant version == 1.6.5.
- java version == 1.6.0_04