DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4692>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4692 Wrapper script does not handle spaces embedded in CLASSPATH properly Summary: Wrapper script does not handle spaces embedded in CLASSPATH properly Product: Ant Version: 1.3 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Wrapper scripts AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The ant.bat and lcp.bat wrapper scripts build an environmental variable called LOCALCLASSPATH to pass as a command line argument to the JVM. This processing introduces quotes into the local classpath which cause command line parsing problems in the JVM when embedded spaces exist in the CLASSPATH environment variable. The solution is to let the JVM's access the CLASSPATH environment variable directly. This works around the problems with the embedded spaces. Doing this simply requires removing LOCALCLASSPATH from the .bat files (it is redundant since "setlocal" is used at the top of the file anyway) and modifying the real CLASSPATH variable instead. The -cp flag can then be removed from the java command line. Lastly, the quotes around the last %%i in the code below from ant.bat should be removed since they appear to prevent the JVM from finding classes containing them. :checkJava set _JAVACMD=%JAVACMD% for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" %%i -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
