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:23 UTC
[jira] Commented: (MSUREFIRE-73) systemClassLoader.getResource
returns null
[ 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