[ http://jira.codehaus.org/browse/MNGECLIPSE-189?page=comments#action_77005 
] 
            
Jonathan Share commented on MNGECLIPSE-189:
-------------------------------------------

1) This would be a pita when the test suite reaches a particular size.

2) This sounds like what I want, but I have no idea where to start myself. When 
the IDEA maven plugin sees a resources directory that has a filter specified it 
does not add it as a source directory leaving all of the work to the 
process-resources and process-test-resources of maven. This works most of the 
time, but occasionaly it seems that the runner doesn't spot that the source 
files have been changed.

3) I generate a properties file for a simple test case. The real use case is my 
spring config files, currently I have 2 developers on windows, I run on Linux 
and the deployment environment is Linux (and I use different paths for some 
things depending on whether it is a test deployment or production deployment). 
There is no way I want to maintain separate spring config files for all of 
these scenarios.

> JUnit runner does not process resource filters before running
> -------------------------------------------------------------
>
>                 Key: MNGECLIPSE-189
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-189
>             Project: Maven 2.x Extension for Eclipse
>          Issue Type: Bug
>    Affects Versions: 0.0.9
>         Environment: Eclipse 3.1.2 Linux
>            Reporter: Jonathan Share
>         Assigned To: Eugene Kuleshov
>            Priority: Trivial
>         Attachments: filter-test.zip
>
>
> I have a project that uses a resource filter to set the path to some files 
> depending on what platform the developer is on. Using maven on the command 
> line this is processed correctly and the Unit tests pass. However, I wish to 
> use the JUnit runner within eclipse however as my resources do not get 
> filtered before the tests try to load them I get exceptions creating URL 
> objects with ${news.image.url} in them.
> Desired behaviour
> ===============
> This plugin should provide a launcher for the junit runner that first runs 
> the process-resources (apologies if this is wrong, writing from memory here) 
> target and ensure the classpath is configured correctly so that the non 
> processed resources are not available to the JUnit runner before running the 
> JUnit tests.

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

        

Reply via email to