How about putting quotes only around the part with the space?

Alternately, is there an escape for the space? (in some form so Unix "\ " works).

On 8/22/11 9:57 AM, Brian FitzGerald wrote:
Thanks for the help guys... this is what I got:

WITH 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_HOME%\bin\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_HOME%\bin\ant
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: C:\AntTest\build.xml

hello:
      [echo] Hello, World

BUILD SUCCESSFUL
Total time: 0 seconds

So with quotes it wouldn't run at all.  Without quotes, it ran, but still is
looking in the JRE directory.  Is now a good time to start banging my head
against the wall?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to