ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: Trailing slash on ANT_HOME in windows
Date Sun, 06 Oct 2002 16:05:52 GMT
There's a turn around on Win2K, that replaces all \" by  \\", but it's not
portable to Win95/98/ME, so cannot really be used in ant.bat. Here's an
extract from oneof our BAT files:

:: replace all the trailing \" by \\" to avoid the java program
:: misunderstanding the command line
set _sysproperties=%_sysproperties:\"=\\"%

Hope this helps. --DD

-----Original Message-----
From: Kieran []
Sent: Saturday, October 05, 2002 9:18 AM
To: Ant Developers List
Subject: Trailing slash on ANT_HOME in windows


I installed ant 1.5.1 on a Windows NT 4 box with jsdk 1.3.1 last night.

The ANT_HOME variable had a trailing slash (e:\ant-1.5.1\ actually).
This resulted in the ant.bat file making a call to:

   java.exe -classpath <antclasspath> "-Dant.home=e:\ant-1.5.1\"

and the java binary bugged out, giving the usage message.
Further checking shows that removing the quotes or the trailing
slash around the "-D" results in normal operation.

I did a google, but didn't immediately find info on this.  Later,
I found the following bug, marked FIXED

The summary seems to be that you can:
1. Allow the trailing slash
2. Allow paths with spaces
3. Have 1 and 2, (by adding "\." on each run) but increase the
size of the ANT_HOME variable in Win9x for each run.

Would you guys accept an FAQ entry on this subject?



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message