title: Ant is using wrong java version
body: <p>I'm using Ant 1.7.0 and installed java 1.6 which is in JAVA_HOME.</p>
  
  <p>I want to build a project using java 1.5, so I've exported JAVA_HOME to be my java 1.5 directory. </p>
  
  <pre><code>java -version
  </code></pre>
  
  <p>says "1.5".  When I run Ant it uses java 1.6.</p>