title: How do I set the path to the build.xml file in a Jenkins ant build from an environment variable on Windows
body: <p>I am running an ant build in Windows from Jenkins and wish to pass the path to the build.xml file in an environment variable.  I am using the envinject plugin to do so.  I wish to set the variable on the project under "Prepare an environment for the run"->"Properties Content":</p>
  
  <pre><code>ANTBUILDDIR=C:\some\directory\here 
  </code></pre>
  
  <p>Then in the ant build properties I set: </p>
  
  <pre><code>"Build File": %ANTBUILDDIR%\build.xml 
  </code></pre>