[ 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to