On 26/02/2009, at 11:33 AM, Les Hazlewood wrote:
I have a webapp that can be deployed as one .war (development) or as
two
separate .war files (production w/ firewall in between the two). I
have 3
web modules to reflect this.
web-colocated
web-front
web-back
The web.xml file for each .war is nearly identical, save the spring
files
listed to start up an ApplicationContext in each .war.
How can I share a single web.xml file across all 3, but filter in
different
values for the comma-delimited spring file list based on profile?
Where
would that master "template" web.xml file live? Or is there another
way to
go about this?
Use the dependency plugin to grab the file (perhaps several files from
an archive) - this can be generated in a separate module of your build
- and unpack it into a location that is then included in your web
resources configuration.
(Though in this situation, my preference is almost always to adjust
the application to ensure such variable configuration lives outside
the WAR, so that you have one release artifact)
- Brett
--
Brett Porter
[email protected]
http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]