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

[jira] Created: (MSUREFIRE-73) systemClassLoader.getResource returns null

systemClassLoader.getResource returns null
------------------------------------------

         Key: MSUREFIRE-73
         URL: http://jira.codehaus.org/browse/MSUREFIRE-73
     Project: Maven 2.x Surefire Plugin
        Type: Bug

    Versions: 2.1.3    
    Reporter: Carlos Sanchez
    Priority: Critical
     Fix For: 2.1.3
 Attachments: surefire-test.tgz

This code fails in m2 and succeeds in ant or eclipse:

        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        InputStream systemResourceAsStream = systemClassLoader.getResourceAsStream( "test.txt" );
        URL resource = systemClassLoader.getResource( name );
        assertNotNull( resource );

test.txt exists in target/test-classes

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MSUREFIRE-73) systemClassLoader.getResource returns null

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSUREFIRE-73?page=all ]
     
Brett Porter closed MSUREFIRE-73:
---------------------------------

      Assign To: Brett Porter
     Resolution: Fixed
    Fix Version:     (was: 2.1.3)
                 2.2

somehow I already fixed this. Confirmed broken on trunk though.

> systemClassLoader.getResource returns null
> ------------------------------------------
>
>          Key: MSUREFIRE-73
>          URL: http://jira.codehaus.org/browse/MSUREFIRE-73
>      Project: Maven 2.x Surefire Plugin
>         Type: Bug

>     Versions: 2.1.3
>     Reporter: Carlos Sanchez
>     Assignee: Brett Porter
>     Priority: Critical
>      Fix For: 2.2
>  Attachments: surefire-test.tgz
>
>
> This code fails in m2 and succeeds in ant or eclipse:
>         ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
>         InputStream systemResourceAsStream = systemClassLoader.getResourceAsStream( "test.txt" );
>         URL resource = systemClassLoader.getResource( name );
>         assertNotNull( resource );
> test.txt exists in target/test-classes

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MSUREFIRE-73) systemClassLoader.getResource returns null

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSUREFIRE-73?page=comments#action_60181 ] 

Carlos Sanchez commented on MSUREFIRE-73:
-----------------------------------------

Attached test case 
mvn test fails
ant test suceeds

> systemClassLoader.getResource returns null
> ------------------------------------------
>
>          Key: MSUREFIRE-73
>          URL: http://jira.codehaus.org/browse/MSUREFIRE-73
>      Project: Maven 2.x Surefire Plugin
>         Type: Bug

>     Versions: 2.1.3
>     Reporter: Carlos Sanchez
>     Priority: Critical
>      Fix For: 2.1.3
>  Attachments: surefire-test.tgz
>
>
> This code fails in m2 and succeeds in ant or eclipse:
>         ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
>         InputStream systemResourceAsStream = systemClassLoader.getResourceAsStream( "test.txt" );
>         URL resource = systemClassLoader.getResource( name );
>         assertNotNull( resource );
> test.txt exists in target/test-classes

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org