You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Fabulich (JIRA)" <ji...@codehaus.org> on 2007/11/24 08:57:57 UTC

[jira] Closed: (SUREFIRE-305) Plugin reads resources from src/test/resources directory and not from target/classes dir

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

Dan Fabulich closed SUREFIRE-305.
---------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: 2.x)

Can't reproduce with 2.4 trunk.  I wrote a test that just does this:

System.out.println(new File( getClass().getResource( "test.txt" ).toURI() ));

and it printed out the path to target/test-classes, not directly to src/main/resources.

I guess we fixed this at some point...?

> Plugin reads resources from src/test/resources directory and not from target/classes dir
> ----------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-305
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-305
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading, plugin
>    Affects Versions: 2.3
>            Reporter: Eric Helfrich
>
> I am trying to filter resources from a property in the pom using the ${property} syntax.  The filtered resource correctly winds up in the targe/classes directory but when I run the test it picks up the unfiltered resource from the src/test/resources directory.

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