[
http://jira.codehaus.org/browse/MNG-3041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98821
]
Wendy Smoak commented on MNG-3041:
----------------------------------
The user list would be a better place to discuss this one, you can find
subscription info here: http://maven.apache.org/mail-lists.html
The examples here should help:
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
> 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