DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=27922>. 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=27922 Launcher fails for UNC drive names as ANT_HOME ------- Additional Comments From [EMAIL PROTECTED] 2004-03-27 23:18 ------- After some investigation, I found out that this depends on the inconsistency of how Java notates UNC pathes as URLs and URIs: 1. new File()"\\\\A\\B").toURI().toString() = "file:////A/B" whereas 2. new File()"\\\\A\\B").toURL().toString() = new File()"\\\\A\\B").toURI().toURL().toString() = "file://A/B" Locator's fromURI-method would handle the 1st case (as implied by the method name) correctly but overgiven arguments are constructed in the 2nd way. The inconsistency is a generally Java Problem. However, Ant should support UNC path names as they are widely used. It might be a possible solution, to change the behaviour in Loactor's fromURI method to strip only two leading slashes if there are more then two. But I'm not familiar with file-URLs produced from the various OSs that Ant supports. Regards, Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]