title: Ant build.xml not reading env properties
body: <p>I have a cmd script file, which sets all the environment values and invoke ant class to build the java project. </p>
  
  <p>I have:</p>
  
  <pre><code>&lt;property environment="env"/&gt; 
  </code></pre>
  
  <p>set in build.xml and </p>
  
  <pre><code>&lt;property name="CD" value="${env.CDTEC}"/&gt;. 
  </code></pre>
  
  <p>build.xml unable to read these env values set from the cmd script file. If I echo the values from command prompt that prints, but not from the ant.xml file. Getting the error as </p>
  
  <pre><code>BUILD FAILED
  c:\Users\test\Projects\Spring testing\build.xml:85: c:\Users\test\Projects\Spring testing\${env.CDTEC}\lib does not exist.
  </code></pre>
  
  <p>I added echo message in build.xml 
  as </p>
  
  <pre><code>&lt;echo message="Message from ${this.CDTEC} Client" /&gt;
  </code></pre>
  
  <p>and printing that as  </p>
  
  <pre><code>'Message from {env.CDTEC} Client'. 
  </code></pre>
  
  <p>Command prompt is printing these values but Ant is not able to access these env values, any idea why?</p>