maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Porter (JIRA)" <j...@codehaus.org>
Subject [jira] Moved: (SUREFIRE-354) Classloader.getResource() doesn't encode blanks
Date Fri, 07 Sep 2007 06:13:11 GMT

     [ http://jira.codehaus.org/browse/SUREFIRE-354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brett Porter moved MNG-2050 to SUREFIRE-354:
--------------------------------------------

    Affects Version/s:     (was: 2.0.1)
        Fix Version/s:     (was: 2.1)
                       2.3.1
          Component/s:     (was: General)
                       classloading
                  Key: SUREFIRE-354  (was: MNG-2050)
              Project: Maven Surefire  (was: Maven 2)

> Classloader.getResource() doesn't encode blanks
> -----------------------------------------------
>
>                 Key: SUREFIRE-354
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-354
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>         Environment: win xp 
>            Reporter: Roland Kofler
>             Fix For: 2.3.1
>
>
> 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

        

Mime
View raw message