title: How to check if directory exists before deleting it, using ANT?
body: <p>Using <code>ANT</code>, how can i make sure that directory exists before attempting to remove it?</p>
  
  <p>As part of my current clean task, i </p>
  
  <pre><code>&lt;target name="clean" description="clean"&gt;
      &lt;delete dir="${build}" /&gt;
      &lt;delete dir="${bin}" /&gt;
      &lt;delete dir="${dist}/myrunner.${version}.jar" /&gt;
      &lt;delete dir="${doc}" /&gt;
      &lt;delete dir="${report}" /&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>This works well, however (obviously) remove happens when there is something to remove. </p>
  
  <p>Using <code>ANT</code>, how can i check if directory exist?</p>