You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2007/12/06 00:34:57 UTC
[jira] Updated: (MWAR-96) WebResource not filtered with system
properties.
[ http://jira.codehaus.org/browse/MWAR-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy updated MWAR-96:
-----------------------------
Fix Version/s: 2.1-alpha-2
> WebResource not filtered with system properties.
> ------------------------------------------------
>
> Key: MWAR-96
> URL: http://jira.codehaus.org/browse/MWAR-96
> Project: Maven 2.x War Plugin
> Issue Type: Bug
> Affects Versions: 2.0.2
> Environment: java 5.0, Windows XP
> Reporter: KlaasJan Elzinga
> Fix For: 2.1-alpha-2
>
> Attachments: patch-CompositeMapa.txt, patch-junit-test.txt
>
>
> When filtering a resource:
> <webResources>
> <resource>
> <directory>${basedir}/src/main/resources/</directory>
> <filtering>true</filtering>
> <includes>
> <include>index.jsp</include>
> </includes>
> </resource>
> </webResources>
> The index.jsp contains:
> <tr><td>java version</td><td>${java.version}</td></tr>
> <tr><td>Project</td><td>${pom.name}</td></tr>
> <tr><td>Version</td><td>${pom.version}</td></tr>
> After mvn clean install the filtered index.jsp looks like:
> <tr><td>java version</td><td>1.0.0.SNAPSHOT</td></tr>
> <tr><td>Project</td><td>FrieslandBank TMS TNS WebApp</td></tr>
> <tr><td>Version</td><td>1.0.0.SNAPSHOT</td></tr>
> The value java.version is filtered to the version of the pom and not the system property. The same goes for os.name which is translated to pom.name.
--
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