[ http://jira.codehaus.org/browse/MPWAR-18?page=all ]
Jason van Zyl updated MPWAR-18:
-------------------------------
Assign To: (was: Jason van Zyl)
> plugin doesn't provide for easily way to filter files
> -----------------------------------------------------
>
> Key: MPWAR-18
> URL: http://jira.codehaus.org/browse/MPWAR-18
> Project: maven-war-plugin
> Type: Improvement
> Reporter: Eric Hauser
> Priority: Minor
> Attachments: plugin.jelly.patch, plugin.jelly.patch2,
> plugin.properties.patch, plugin.properties.patch2, properties.xml.patch,
> properties.xml.patch2
>
> Original Estimate: 1 hour
> Remaining: 1 hour
>
> Since the war plugin does not use the project.xml file for any of its
> resources, there is not an easy way to filter files. If you are building an
> artifact that uses maven:copy-resources in one of its goals, filtering is
> simple. Just set filtering to true on the build resource in the POM, and add
> a simple preGoal which sets your filters maven.xml This is a lot more
> difficult when building a war because the files are copied and built into the
> war in the same goal.
> There are some workarounds to this. You can copy the source directory for
> your webapp to a temporary directory under target and have that be
> maven.war.src. That requires a lot of verbose code in maven.xml for each
> webapp. A filtering attribute could be added to the ant:copy command that
> copies the maven.war.src directory, but then filters cannot be easily defined
> in the POM.
--
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