Re: Ant not respecting JAVA_HOME

2011-08-23 Thread Santanu Basu
n\ant > >> The syntax of the command is incorrect. > >> > >> WITHOUT QUOTES: > >> C:\Users\Brian>cd C:\AntTest > >> C:\AntTest>set JAVA_HOME=C:\Program Files\Java\jdk.1.6.0_23 > >> C:\AntTest>set ANT_HOME=C:\Ant C:\AntTest>%ANT_HOM

Re: Ant not respecting JAVA_HOME

2011-08-22 Thread Santanu Basu
Brian, you can try this as well C:\Users\Brian>cd C:\AntTest C:\AntTest>set JAVA_HOME=C:\Program Files\Java\jdk.1.6.0_23 C:\AntTest>set ANT_HOME=C:\Ant C:\AntTest>set path=%JAVA_HOME%\bin C:\AntTest>java -classpath "%ANT_HOME%\lib\ant-launcher.jar" -Dant.home=c:\ant org.apache.tools.ant.launch.L

Re: Ant not respecting JAVA_HOME

2011-08-22 Thread Santanu Basu
Have you done this? C:\Users\Brian>cd C:\AntTest C:\AntTest>set JAVA_HOME=C:\Program Files\Java\jdk.1.6.0_23 C:\AntTest>set ANT_HOME=C:\Program Files\Apache Software Foundation\apache-ant-1.8.2 C:\AntTest>%ANT_HOME%\bin\ant The above should work. Which version of Ant you are using? Thanks, Sant

Re: Ant not respecting JAVA_HOME

2011-08-22 Thread Santanu Basu
Do you have the build.xml in the directory from where you are running ant? How you are calling ant? You can create a script and set the java_home just before calling %ANT_HOME%/bin/ant. set JAVA_HOME=C:\Program Files\Java\jdk.1.6.0_23 set ANT_HOME=C:\Program Files\Apache Software Foundation\apac