https://bz.apache.org/bugzilla/show_bug.cgi?id=59104

--- Comment #4 from Jan Mat <[email protected]> ---
I did a small test:
<project>
    <mkdir dir="bak"/>
    <makeurl file="build.xml" property="url"/>
    <echo>url=${url}</echo>
    <get src="${url}" dest="bak"/>
    <loadresource property="content">
        <url url="${url}"/>
    </loadresource>
    <echo>content=${content}</echo>
</project>

this worked on my win7 machine.


The code basically wrapps "new File(path).toURI().toASCIIString()", so we rely
on the Java core. 

Maybe I haven't found the exact source ...
https://tools.ietf.org/html/rfc3986 (URI): have read some paragraphs where I
think three slashes are mandatory, but also some paragraphs where I think two
are ok.

I also found
https://blogs.msdn.microsoft.com/ie/2006/12/06/file-uris-in-windows/
This basically sais:
* If you have an UNC path (with the computer name included) you have two
slashes
* If you have a local path (with the drive letter included) you have three
slashes

So maybe this conversion is wrong.
But than this is a bug in the Java core (I think).

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to