Make Ant's delete task fail when a directory exists and is not deleted but not when it doesn't exist
- by Tim Visher
I have tho following clean function in my build script and I'd like to know how I can improve it.
<target name="clean" description="Clean output directories.">
<!-- Must not fail on error because it fails if directories don't exist.
Is there really no better way to do this? -->
<delete includeEmptyDirs="true"…