title: ANT build.xml delete task of directory not working
body: <p>i have an xml script for building a project out of this structure.</p>
  
  <ul>
  <li>src
  <ul>
  <li>src  files and package subdirs</li>
  </ul></li>
  <li>rsrc
  <ul>
  <li>build.xml</li>
  </ul></li>
  </ul>
  
  <p>After building out of the src folder there is a build and lib folder created in rsrc</p>
  
  <ul>
  <li>src
  <ul>
  <li>src files and package subdirs</li>
  </ul></li>
  <li>rsrc
  <ul>
  <li>build
  <ul>
  <li>package subdirs</li>
  </ul></li>
  <li>lib</li>
  <li>build.xml</li>
  </ul></li>
  </ul>
  
  <p>After everything worked, the build folder is filled with the .class files, in their package subdirs. In the lib folder the distribution .jar has it's place. Now to my problem i wrote this target named= "clean":</p>
  
  <pre><code>  &lt;target name="clean"
          description="clean up" &gt;
          &lt;!-- Delete the ${build} directory tree --&gt;
          &lt;delete dir="${build}"/&gt;
    &lt;/target&gt;
  </code></pre>
  
  <p>Which should delete the build folder, its subfolders and contents.
  The $ Build is defined as:</p>
  
  <pre><code>  &lt;property name="build" location="build"/&gt;
  </code></pre>
  
  <p>and the base directory as basedir="."</p>
  
  <p>But nothing gets deleted, what am I doing wrong. </p>
  
  <p>Best regards Stefan
  (If you need additional information just ask please) </p>
  
  <p>EDIT:
  If i call it with "ant -v clean" the build file is deleted .. if i call with "ant" or "ant -verbose" its not. </p>