You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Patrick Farrell (JIRA)" <ji...@codehaus.org> on 2008/12/30 05:02:19 UTC
[jira] Commented: (MRESOURCES-79) are filtered by test
filters
[ http://jira.codehaus.org/browse/MRESOURCES-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159403#action_159403 ]
Patrick Farrell commented on MRESOURCES-79:
-------------------------------------------
I am experiencing the same issue and think nodje has proposed what would be an intuitive and consistent solution (from the user perspective).
I design my poms to use filtering based on profiles, so, I have a filters-dev.properties, filters-test.properties, etc... However, since I also create tests, I would like to have different props files for test runs within a specific environment, i.e. different log4j or hibernate config file settings that I populate using filtering.
I think there should be a <testFilters><filter>...</filter></testFilters> structure to accommodate the configuration I am describing.
> <resources> are filtered by test filters
> ----------------------------------------
>
> Key: MRESOURCES-79
> URL: http://jira.codehaus.org/browse/MRESOURCES-79
> Project: Maven 2.x Resources Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Maven 2.0.9, Java 1.6.0_07 OS_X
> Reporter: nodje
> Attachments: resources-testcase.zip
>
>
> With the following configuration I assume <resources> should get filtered by src/main/filters/* and <testResources> by src/test/filters/* :
> <filters>
> <filter>src/main/filters/dev.filter.properties</filter>
> <filter>src/test/filters/dev.filter.properties</filter>
> </filters>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> <filtering>true</filtering>
> </resource>
> </resources>
> <testResources>
> <testResource>
> <directory>src/test/resources</directory>
> <filtering>true</filtering>
> </testResource>
> </testResources>
> But all resources files end up being filtered by the src/test/filters/*.
> Attached is the simpliest Maven2 proect reproducing this behavior.
--
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