In the latest release (2.0.1), we exclude struts.xml from having its variables replaced:
<resources> <resource> <directory>src/main/resources</directory> <excludes> <exclude>ApplicationResources_de.properties</exclude> <exclude>ApplicationResources_fr.properties</exclude> <exclude>ApplicationResources_ko.properties</exclude> <exclude>ApplicationResources_nl.properties</exclude> <exclude>ApplicationResources_no.properties</exclude> <exclude>ApplicationResources_pt*.properties</exclude> <exclude>ApplicationResources_tr.properties</exclude> <exclude>ApplicationResources_zh*.properties</exclude> <exclude>applicationContext-resources.xml</exclude> <exclude>struts.xml</exclude> </excludes> <filtering>true</filtering> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>applicationContext-resources.xml</include> <include>struts.xml</include> </includes> <filtering>false</filtering> </resource> </resources> Matt On 12/31/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi All, > > I am using a replaceable variable in my struts.xml file to pass data via my > action during a redirect, like this: > > <action name="saveRouteDelivery" > class="au.com.myapp.webapp.action.RouteAction" method="saveDelivery"> > <result name="success" > type="redirect">editRoute.html?id=${route.id}</result> > <!-- snip --> > </action> > > However, I'm finding that the maven build process is replacing this variable > if it is $(id) or ${xxx.id} where "xxx" can be > any string. It's being replaced with a string like the following: > > au.com.myapp:myapp_trucking:war:0.1-SNAPSHOT > > AFAICT, this is made up of elements from the pom.xml file: > groupId (au.com.myapp) > artifactId (myapp_trucking) > packaging (war) > version (0.1-SNAPSHOT) > > Is this expected behaviour? If so, is there a way of putting something like > ${route.id} into my struts.xml file so that it isn't > replaced, or will I have to refactor the app to use a different parameter > name here? > > Cheers, > Rob Hills > Waikiki, Western Australia > Mobile +61 (412) 904-357 > Fax: +61 (8) 9529-2137 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]