title: Setting up environment variable in ant script
body: <p>I am using ant for building my projects, This project needs more memory then default JVM size, So I have added following line of code in the <code>build.xml</code> file.</p>
  
  <pre><code>&lt;!-- setting up this value as project need this much memory to compile.--&gt;
  &lt;property environment="env" /&gt;
  &lt;property name="env.ANT_OPTS" value="-Xms1024m -Xmx204888m"  /&gt;
  </code></pre>
  
  <p>But above line of code does not seems to have any effect as I am still getting the heap size problem. So I have decided to use a <code>batch</code> script for launching the build. The line of code in the given batch file is below</p>
  
  <pre><code>set ANT_OPTS=-Xms512m -Xmx778m
  ant -f agora-build.xml
  </code></pre>
  
  <p>This batch script successfully launch and executes the ant script. But this is not what I am looking for. Is there a way exists, so that I can setup this argument in the ant script itself?</p>
  
  <p>What should i do? </p>
  
  <p>Thanks,
  VSD</p>