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 [mailto:[EMAIL PROTECTED] Sent: Saturday, October 05, 2002 9:18 AM To: Ant Developers List Subject: Trailing slash on ANT_HOME in windows Hi, 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\" org.apache.tools.ant.Main 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 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1849 The summary seems to be that you can: 1. Allow the trailing slash 2. Allow paths with spaces or 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? regards Kieran -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
