title: Setting ANT_HOME and JAVA_HOME on cmd
body: <p>I have batch scripts  , the problem is when I run setup.bat   it sets  JAVA_HOME , ANT_HOME temporarily then I can run build.bat. If I run build.bat only ant calls  gives error. Any idea what is going on here ? </p>
  
  <pre><code>Setup.bat 
  
  @echo off
  REM ----- BUFFER SIZE-------
  mode con:cols=140 lines=9999
  REM ------ Change Directory For Java Home ----- 
  set PATH=%BASEPATH%
  set ANT_HOME=d:\Tools\apache-ant-1.9.4
  set JAVA_HOME=d:\Tools\jdk7x64\jdk1.7.0_55
  set PATH=%ANT_HOME%\bin;%JAVA_HOME%\bin;D:\Tools\scripts;%PATH%
  
  Build.bat
  
  REM ----- Drive Selection ------
  cd /d "D:\"
  cd D:\Work\parser\trunk
  call ant -f  build.xml clean devbuild 
  cd D:\Work\dm\v3.2 
  call ant -f build.xml clean devbuild
  </code></pre>