title: mkdir in ant fails. How can i handle this error
body: <p>The ANT build script I have does the following:</p>
  
  <ol>
  <li>Perform the builds on Windows server &amp; Zip the binaries</li>
  <li>Map a network drive with different credentials to a local drive (ex P:) using <code>net use</code></li>
  <li>I am using <code>&lt;mkdir&gt;</code> to create a directory on the mounted drive (P:) </li>
  <li>Copy the binaries to that drive</li>
  </ol>
  
  <p>Below is my code for <code>mkdir</code></p>
  
  <pre><code>&lt;echo&gt;Creating ${buildRequesterUserId} folder at mirroring site starts&lt;/echo&gt;
  &lt;mkdir dir="P:\build_output\${buildRequesterUserId}"/&gt;
  &lt;echo&gt;Creating ${buildRequesterUserId} folder at mirroring site ends&lt;/echo&gt;
  </code></pre>
  
  <p>Some time the creation of folder works and some time it fails with below error</p>
  
  <p><code>creation was not successful for an unknown reason</code> and makes the build fail</p>
  
  <p>This error happens randomly. The Mkdir works some time. I am not sure why it fails and not sure if its because of network lag</p>
  
  <p>also the directory i am trying to create may or may not exist already. I read that the mkdir does not do anything if directory exists already</p>
  
  <p>I checked and there is no <code>failonerror</code> for mkdir. I don't want the build to fail because of this. </p>
  
  <p>I have handled the error in <code>copy</code> part but not sure how to handle this <code>mkdir</code></p>
  
  <p>How can I achieve this? Any help would be appreciated</p>
  
  <p>Regards</p>
  
  <p>Karthik</p>