You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anthony Whitford (JIRA)" <ji...@codehaus.org> on 2007/06/08 05:16:58 UTC
[jira] Created: (MNG-3041) Apply filters to files in WEB-INF/*.xml
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
[jira] Commented: (MNG-3041) Apply filters to files in
WEB-INF/*.xml
Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Closed: (MNG-3041) Apply filters to files in WEB-INF/*.xml
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ 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