Using ANT
, how can i make sure that directory exists before attempting to remove it?
As part of my current clean task, i
You can do it by ordering to delete a list of files with names equal to the name you need. It is much easier and direct than to create a special target. And you needn't any additional tools, just pure Ant.
<delete>
<fileset includes="name or names of file or files you need to delete"/>
</delete>
http://ant.apache.org/manual/Types/fileset.html