The following comment has been added to this issue:

     Author: Eric Hauser
    Created: Wed, 18 Feb 2004 9:29 AM
       Body:
I added a couple patches which seems to me like a good solution.  This allows users to 
easily include pom resources in their webapp, but by default it is turned off.
---------------------------------------------------------------------
View this comment:
  
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPWAR-18&page=comments#action_16903

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPWAR-18

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPWAR-18
    Summary: plugin doesn't provide for easily way to filter files
       Type: Improvement

     Status: Open
   Priority: Minor

 Original Estimate: 1 hour
 Time Spent: Unknown
  Remaining: 1 hour

    Project: maven-war-plugin

   Assignee: Jason van Zyl
   Reporter: Eric Hauser

    Created: Wed, 18 Feb 2004 9:26 AM
    Updated: Wed, 18 Feb 2004 9:29 AM

Description:
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.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to