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 09:20:59 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 09:20 -------
I saw the last changes related to this bug - unfortunately they didn't fix it at
all :-(
I've made the test and it looked the same as previously... but they give us one
advantage - now we need to change one line only to make this working properly.

Launcher.java[line#272("baseClassPath.append(Locator.fromURI(jars[i].toString()));)"]
to:
************ FIX ********************
"baseClassPath.append(jars[i].toString());"
************ FIX ********************
_______________________________________________________________________________
Since the paths of "jars" have been already encoded in addPath(..) we cannot do
this once again here...
_______________________________________________________________________________

Result of the test with the version from repository:
//-----------------------------------------------------
C:\Program Files\tools test 2\ant\bin>ant
java.lang.IllegalArgumentException
        at java.net.URI.create(URI.java:842)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:160)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:272)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:100)
Caused by: java.net.URISyntaxException: Illegal character in path at index 16:
file:/C:/Program Files/Java/jdk1.5.0_05/lib/tools.jar
        at java.net.URI$Parser.fail(URI.java:2809)
        at java.net.URI$Parser.checkChars(URI.java:2982)
        at java.net.URI$Parser.parseHierarchical(URI.java:3066)
        at java.net.URI$Parser.parse(URI.java:3014)
        at java.net.URI.<init>(URI.java:578)
        at java.net.URI.create(URI.java:840)
//-----------------------------------------------------
.. and after my change:
//-----------------------------------------------------
C:\Program Files\tools test 2\ant\bin>ant
Buildfile: build.xml
     [echo] [windir]    : C:\WINDOWS
     [echo] [temp.dir]  : C:\WINDOWS\temp

test:
     [echo] splash:  file:///C:\Program Files/tools test 2/ant/images/winzip.jpg
     [echo] 10:57:27 AM
     [exec] Result: 1

BUILD SUCCESSFUL
Total time: 7 seconds
//-----------------------------------------------------

I hope it will not harm the processing on the other OSes.


-- 
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