You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Gili (JIRA)" <ji...@codehaus.org> on 2006/03/17 06:36:11 UTC

[jira] Commented: (MNG-2050) Classloader.getResource() doesn't encode blanks

    [ http://jira.codehaus.org/browse/MNG-2050?page=comments#action_61346 ] 

Gili commented on MNG-2050:
---------------------------

Roland,

Is it possible to schedule this bug against the next release? It sounds like an easy fix...?

> Classloader.getResource() doesn't encode blanks
> -----------------------------------------------
>
>          Key: MNG-2050
>          URL: http://jira.codehaus.org/browse/MNG-2050
>      Project: Maven 2
>         Type: Bug

>   Components: General
>     Versions: 2.0.1
>  Environment: win xp 
>     Reporter: Roland Kofler

>
>
> When I'm executing an
>           getClass().getClassLoader().getResource(s);
> it gives back an URL encoded string in eclipse while Maven2 gives me blanks in my URL:
> * eclipse
>     file:/C:/Dokumente%20und%20Einstellungen/roland.kofler/systemone/core/target/test-classes/fsm.jpg
> *maven2
>     file:/C:/Dokumente und Einstellungen/roland.kofler/systemone/core/target/test-classes/fsm.jpg
> MY PROBLEM WITH THIS:
> Because of this behaviour a 
>       new URI("file:/C:/Dokumente und Einstellungen/roland.kofler/systemone/core/target/test-classes/fsm.jpg")
> throws a URISyntaxException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira