title: Jenkins ant plugin has wrong value for ${user.dir} working directory
body: <p>I have the following build file in C:\A\B</p>
  
  <pre><code>&lt;project name="demo" default="printCWD"&gt;
      &lt;target name="printCWD"&gt;
          &lt;echo message="user.dir=${user.dir}"/&gt;
      &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>and run this command whilst in C:\A</p>
  
  <pre><code>ant -buildfile B\build.xml
  </code></pre>
  
  <p>it prints "C:\A"</p>
  
  <p>But from the Ant plug-in installed on a Jenkins CI machine, which has the Buildfile setting set to "B/build.xml", it prints "/workspace/B"</p>
  
  <p>Why is it on my local machine it prints the folder from which I invoked the ant command, yet on the Jenkins CI server it prints the folder that the buildfile is in?</p>
  
  <p>Many thanks for any help.</p>
  
  <p>Paul</p>