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

Jean-Yves LEBLEU edited comment on MWAR-129 at 11/13/07 7:15 AM:
-----------------------------------------------------------------

Sample project mwar_129 attached,

The file param.jsp contains properties which are set in the pom.xml.
when you run mvn clean package, these properties are replaced by the one 
defined in the corresponding profile.

Exemple :

mvn clean package -Dprofile1=1

param.jsp :

<c:set var="app_version" value="1.0-SNAPSHOT"/>
<c:set var="app_mainStyleSheet" value="profile1.css"/>

mvn clean package -Dprofile2=1

param.jsp :

<c:set var="app_version" value="1.0-SNAPSHOT"/>
<c:set var="app_mainStyleSheet" value="profile2.css"/>


This was working well with war plugin version 2.0.2 and not with the alpha 
version.


 was:
Sample project,

The file param.jsp contains properties which are set in the pom.xml.
when you run mvn clean package, these properties are replaced by the one 
defined in the corresponding profile.

Exemple :

mvn clean package -Dprofile1=1

param.jsp :

<c:set var="app_version" value="1.0-SNAPSHOT"/>
<c:set var="app_mainStyleSheet" value="profile1.css"/>

mvn clean package -Dprofile2=1

param.jsp :

<c:set var="app_version" value="1.0-SNAPSHOT"/>
<c:set var="app_mainStyleSheet" value="profile2.css"/>


This was working well with war plugin version 2.0.2 and not with the alpha 
version.

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