title: Ant ignores attempt to override the LANG environment variable
body: <p>We need to test a java build with the languages set to different values. I can manually (i.e. via <code>export LANG=en_DK.UTF-8</code> and <code>export LANG=en_DK</code>) test that the unit tests run with the ant build script behaves differently, but I need to set the environment variable from ant. I have tried setting it using these methods (with the shell <code>$LANG</code> set to <code>en_DK.UTF-8</code>):</p>
  
  <ol>
  <li>using <code>-D</code> on the command line: <code>ant -DLANG=en_DK</code></li>
  <li>using a <code>build.properties</code> file with the line <code>LANG=en_DK</code> in it</li>
  <li>using the following statements in the build.xml file (sorry for the formatting, I can't get SO to display it otherwise):</li>
  </ol>
  
  <p>:</p>
  
  <pre><code>&lt;property environment="ANTENV"/&gt;
  &lt;property name="ANTENV.LANG" value="en_DK"/&gt;
  </code></pre>
  
  <p>Using any of the three possibilities, and when run with <code>-debug</code>, ant reports that:</p>
  
  <pre><code>Override ignored for property "LANG"
  </code></pre>
  
  <p>What can I do to set the <code>LANG</code> environment variable from within ant?</p>