title: Ant not using ANT_OPTS
body: <p>I have following line in my .bash_profile file</p>
  
  <pre><code>export ANT_OPTS='-Xmx1024m -Xms1024m -XX:MaxPermSize=1024m'
  </code></pre>
  
  <p>However, when I run ant in one of my projects it doesn't look like it is using above arguments.</p>
  
  <p>This is the command I run </p>
  
  <pre><code>ant -f myfile.xml
  </code></pre>
  
  <p>This is how I checked if ant is using ANT_OPTS I added in my .bash_profile file</p>
  
  <p>I captured the running java process and it is using -Xmx512m</p>