[ http://jira.codehaus.org/browse/SUREFIRE-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated SUREFIRE-69: --------------------------------- Affects Version/s: 1.5.3 (2.1.3 plugin) Fix Version/s: 2.0 (2.2 plugin) > systemClassLoader.getResource returns null > ------------------------------------------ > > Key: SUREFIRE-69 > URL: http://jira.codehaus.org/browse/SUREFIRE-69 > Project: Maven Surefire > Issue Type: Bug > Affects Versions: 1.5.3 (2.1.3 plugin) > Reporter: Carlos Sanchez > Assigned To: Brett Porter > Priority: Critical > Fix For: 2.0 (2.2 plugin) > > 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