You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2008/02/15 17:08:30 UTC

[jira] Commented: (MWAR-144) Custom filter list does not work

    [ http://jira.codehaus.org/browse/MWAR-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123805 ] 

Olivier Lamy commented on MWAR-144:
-----------------------------------

Did you try on last SNAPSHOT ? 
Concerning plugin configuration :
{code:xml}
  <filters>
    <filter>src/main/filters/filter.ptest.properties</filter>
  </filters>
{code} 
I would prefer something like 
{code:xml}
  <filters>
    <filter>${basedir}/src/main/filters/filter.ptest.properties</filter>
  </filters>
{code} 

> Custom filter list does not work
> --------------------------------
>
>                 Key: MWAR-144
>                 URL: http://jira.codehaus.org/browse/MWAR-144
>             Project: Maven 2.x War Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-1
>            Reporter: Trygve Laugstol
>
> When specifying filters on the plugin (not inside <project>) like this:
> {code}
> <configuration>
>   <resource>
>     <directory>polopoly-resources/config_ptest</directory>
>     <targetPath>WEB-INF/config</targetPath>
>   </resource>
>   <warName>ptest</warName>
>   <workDirectory>target/ptest-work</workDirectory>
>   <filters>
>     <filter>src/main/filters/filter.ptest.properties</filter>
>   </filters>
> <webResources>
>   <resource>
>     <directory>src/main/resources</directory>
>     <targetPath>WEB-INF/classes</targetPath>
>     <filtering>true</filtering>
>   </resource>
> </webResources>
> {code}
> the list of filters is ignored. If I move the <filters> list to inside the <project> they work as expected. The documentation explicitly say that this is possible under the section "Filtering webResources".

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