|
Re: deploying forrest with environment variables: msg#00130text.xml.forrest.user
Gilles VANDAELE wrote: Ross Gardler <rgardler <at> apache.org> writes: Glutten for punishment eh? In my site.xml, some part of href attributes needs to be set to the right server Before I go into the solution I have in mind let me ask a couple of questions, I'm not sure an "environment parameter" is the right idea. Since you are building a war the values are static once built. So why not just change them in the site.xml file before they are built? You could do this manually each time it is built, or, if you need to automate it you could write an ANT task that takes the property value from the command line, builds the correct site.xml file using filtersets and then continues with a normal forrest build. See http://ant.apache.org/manual/CoreTypes/filterset.html for more info To see a fairly clear example of how to use this take a look at the seed-plugin template in "FORREST_HOME/plugins/build.xml". Doing it this way means that you don't have to play with Forest core, so you get easier upgrades between Forrest versions. Ross |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Forrestbot help: 00130, David Crossley |
|---|---|
| Next by Date: | finding documentation about Forrest: 00130, Tiscar Sebastien |
| Previous by Thread: | Re: deploying forrest with environment variablesi: 00130, Gilles VANDAELE |
| Next by Thread: | AW: deploying forrest with environment variables: 00130, Jan.Materne |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |