[ 
http://jira.codehaus.org/browse/MWAR-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_114764
 ] 

Stephane Nicoll commented on MWAR-129:
--------------------------------------

Olivier, this is due to the overlay overwriting strategy. Since this file is 
part of the webapp, it is copied by the ProjectPackagingTask (something like 
that)

If the target file alredy exists, it is not overwriten (first win strategy).

However, we should copy the resources first (so that we can apply filtering). 
Unfortunately there is this stupid "do not copy if it is the webapp source" 
flag used for the war:inplace goal (this sounds very hackish to me btw)

Thanks for taking care of this ; it would be good if we could chat a bit to see 
how we're gonna solve this.

> WebRessource not filtered
> -------------------------
>
>                 Key: MWAR-129
>                 URL: http://jira.codehaus.org/browse/MWAR-129
>             Project: Maven 2.x War Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1-alpha-1
>         Environment: windows, maven 2.0.7
>            Reporter: Jean-Yves LEBLEU
>            Assignee: Olivier Lamy
>             Fix For: 2.1-alpha-2
>
>         Attachments: mwar_129.zip
>
>
> Previously Webressources were correctly filtered and are not filtered any 
> more 
> See above extract from pom.xml 
>       <plugin>
>         <artifactId>maven-war-plugin</artifactId>
>         <version>2.0.2</version>
>         <configuration>
>           <warSourceDirectory>src/main/webapp</warSourceDirectory>
>           <webResources>
>             <resource>
>               <filtering>true</filtering>
>               <directory>src/main/webapp</directory>
>               <targetPath>.</targetPath>
>               <includes>
>                 <include>param.jsp</include>
>               </includes>
>             </resource>
>           </webResources>
>         </configuration>
>       </plugin>

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