ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39295] - white spaces in path
Date Mon, 24 Apr 2006 12:44:09 GMT
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=39295>.
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=39295





------- Additional Comments From wherka@o2.pl  2006-04-24 12:44 -------
(In reply to comment #7)
> Can you try the current SVN ant.
> I implemently something similar to your request.
> It uses Locator.encodeURI implemented in
> ant 1.7, instead of File.toURI
> 
> I have tested on linux.
> export CLASSPATH="/home/preilly/a space"
> preilly@backpack:~/tmp/a > ant -f x.xml
> 
> Where there is a jar in "a space" that is
> needed by x.xml.
> 

Indeed it was implemented this way, but please try to put JAVA environment in
Windows' default location (C:\Program Files\Java\..) and you'll get this error
for sure.
I have just investigated it once again - in fact I gave the workaround not the
real solution... it works but I can give you a better one.
The real problem was encoding of "tools.jar" - it hasn't been encoded at all, so
if you've installed JDK somewhere in "spacing" location you get into trouble as
I did.


New refined fix:
Launcher.java - line#258 "jars[jars.length - 1] = toolsJar.toURL();" should be
changed to:
**************** FIX ***********************
 if (toolsJar != null) {
        	try {
        		jars[jars.length - 1] = new
URL(Locator.encodeURI(toolsJar.toURL().toString()));
            } catch (UnsupportedEncodingException ex) {
                throw new MalformedURLException(ex.toString());
            }
        }
**************** FIX ***********************

-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message