geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarek Gawor <jga...@gmail.com>
Subject Re: Building Geronimo 3.0 with Equinox
Date Thu, 04 Mar 2010 18:20:35 GMT
On Thu, Mar 4, 2010 at 12:53 PM, David Jencks <david_jencks@yahoo.com> wrote:
>
>
> /var/folders/J0/J041U4tbGqeIsK+mFxmskk+++TI/-Tmp-/geronimo-fileutils5636892370741293365.tmpfile
>
> toURI().toURL() gives
>
> file:/var/folders/J0/J041U4tbGqeIsK+mFxmskk+++TI/-Tmp-/geronimo-fileutils5636892370741293365.tmpfile
>
> which felix URLDecoder.decodes to
>
> reference:file:/var/folders/J0/J041U4tbGqeIsK mFxmskk
> TI/-Tmp-/geronimo-fileutils5636892370741293365.tmpfile
>
> (note the spaces)
>
> URLEncoder.encode gives
>
> %2Fvar%2Ffolders%2FJ0%2FJ041U4tbGqeIsK%2BmFxmskk%2B%2B%2BTI%2F-Tmp-%2Fgeronimo-fileutils5636892370741293365.tmpfile
> which decodes to the original.
>
> I think felix is wrong.... WDYT?

Yeah, I agree. I think felix should probably be using the URI class to
decode the location (e.g. something like (new
URI(location)).getPath())

Jarek

Mime
View raw message