title: How to create temporary directory in ant?
body: <p>I'd like to create a temporary directory in ant (version 1.6.5) and assign it to a property.</p>
  
  <ul>
  <li>The command "mktemp -d" would be ideal for this, but I cannot find similar functionality from inside ant</li>
  <li>I can't find any official function in the docs apart from the <a href="http://ant.apache.org/manual/Tasks/tempfile.html">tempfile task</a> which apparently only creates files, not directories.</li>
  <li>I'm considering using exec to call tempfile and get the result, however this will make my  build.xml dependent on UNIX/linux, which I'd like to avoid.</li>
  </ul>
  
  <p>Background: I'm trying to speed up an existing build process which builds inside networked filesystem. The build already copies all the source to a temporary directory, however this is on the same filesystem. I've tested changing this to /tmp/foo and it gives a worthwhile speed increase: 3mins vs 4mins.</p>