ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Problem with Quotes on XP
Date Mon, 22 Aug 2005 06:47:11 GMT
Could you set ANT_HOME without the last backslash?
Or dont set it (the ant.bat will do it then for that cmd-session). 

Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Peter Kay [mailto:peterkayatwork@yahoo.com] 
>Gesendet: Freitag, 19. August 2005 16:58
>An: user@ant.apache.org
>Betreff: Problem with Quotes on XP
>
>Hi all,
>
>I just installed Ant today on an XP box, and I'm getting 
>errors when I try to run "ant" from the command line (cmd).  
>The errors seem to stem from the use of quotes when java is 
>called.  I turn on echo in ant.bat, and saw this was the 
>command being executed:
>
>"c:\j2sdk1.4.2_07\bin\java.exe" -classpath 
>"c:\apps\Ant\\lib\ant-launcher.jar"
>"-Dant.home=c:\apps\Ant\"
>org.apache.tools.ant.launch.Launcher
>
>It fails.  If I take out the quotes:
>
>"c:\j2sdk1.4.2_07\bin\java.exe" -classpath 
>c:\apps\Ant\\lib\ant-launcher.jar -Dant.home=c:\apps\Ant\ 
>org.apache.tools.ant.launch.Launcher
>
>and run it from the command line, then it works.
>
>I have no CLASSPATH set, and SET shows
>ANT_HOME=c:\apps\Ant\
>JAVA_HOME=c:\j2sdk1.4.2_07
>
>No quotes there!  These were set from the Advanced part of My 
>Computer->Properties, FWIW.
>
>I haven't added any environment variables besides those, and 
>the ant\bin directory is in my path.
>
>For added excitement, I can run it with cygwin (running ant, 
>the shell script) with no problem at all (at least until I 
>start using actual build scrits :-D
>)
>
>Is my setup incorrect?  Is there a problem with ant.bat?  I've 
>gone through some old mailings, and while there were similar 
>problems, I haven't seen this one before.
>
>Thanks,
>
>--Peter
>
>
>		
>____________________________________________________
>Start your day with Yahoo! - make it your home page 
>http://www.yahoo.com/r/hs 
> 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message