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

Brett Porter closed MNG-3041.
-----------------------------

       Resolution: Incomplete
    Fix Version/s:     (was: Reviewed Pending Version Assignment)

> Apply filters to files in WEB-INF/*.xml
> ---------------------------------------
>
>                 Key: MNG-3041
>                 URL: http://jira.codehaus.org/browse/MNG-3041
>             Project: Maven 2
>          Issue Type: Improvement
>    Affects Versions: 2.0.6
>            Reporter: Anthony Whitford
>
> I have a WEB-INF/components.xml file that I would like to apply filters to.  
> I figured I could do something like:
>     <build>
>         <resources>
>             <resource>
>                 <directory>src/main/resources</directory>
>                 <excludes>
>                     <exclude>components.xml</exclude>
>                 </excludes>
>             </resource>
>             <resource>
>                 <directory>src/main/resources</directory>
>                 <includes>
>                     <include>components.xml</include>
>                 </includes>
>                 <filtering>true</filtering>
>                 <targetPath>..</targetPath>
>             </resource>
>         </resources>
>     </build>
> And this works -- except for one silly thing:  the components.xml file, now 
> sitting in the target directory, is not included in the war.  I tried several 
> different targetPaths and I can't get it to work...
> It might be easier to to separate filtering from just processing resources.  
> (It might be nice to be able to tokenize almost any file.)

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