DO NOT REPLY [Bug 43971] New: - ant.bat execu...

来源:百度文库 编辑:神马文学网 时间:2024/04/26 03:42:42
DO NOT REPLY [Bug 43971] New: - ant.bat execution fails if CLASSPATH ends with double-quotes
bugzilla
Tue, 27 Nov 2007 02:25:39 -0800
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT.ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·INSERTED IN THE BUG DATABASE.http://issues.apache.org/bugzilla/show_bug.cgi?id=43971Summary: ant.bat execution fails if CLASSPATH ends with double-quotesProduct: AntVersion: 1.7.0Platform: PCOS/Version: Windows XPStatus: NEWSeverity: normalPriority: P3Component: Wrapper scriptsAssignedTo: dev@ant.apache.orgReportedBy: [EMAIL PROTECTED]If the CLASSPATH environment variable ends with a " (double-quote character),then the Ant scripts will not work; the error message is "The syntax of thecommand is incorrect.".This is due to the line 82 in the script file ant\bin\ant.bat:if not _%CLASSPATH:~-1%==_\ goto findAntHomeIndeed, variable expansion+manipulation here results in this:if not _"==_\ goto findAntHomewhich obviously breaks the syntax of the shell.A quick fix is* either to remove the double-quote characters around the last CLASSPATH entry* or to add an additional semi-colon ( ; ) character at the end of yourenvironment CLASSPATH value--Configure bugmail:http://issues.apache.org/bugzilla/userprefs.cgi?tab=email------- You are receiving this mail because: -------You are the assignee for the bug, or are watching the assignee.---------------------------------------------------------------------To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]