Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I include different web.xml files in order to switch between production and development builds?

0
Posted

How do I include different web.xml files in order to switch between production and development builds?

0

Location: http://www.jguru.com/faq/view.jsp?EID=535861 Created: Nov 1, 2001 Author: Erik Hatcher (http://www.jguru.com/guru/viewbio.jsp?EID=405274) Question originally posed by David Chelimsky (http://www.jguru.com/guru/viewbio.jsp?EID=535615 Several ways to do this kind of thing, but the simplest is to put your two different web.xml files into different directories named ‘production’ and ‘development’ (or alternatively name your files web-production.xml and web-development.xml) – just as long as the words ‘development’ and ‘production’ are part of the filename. Then you can do a copy: -or- Another way to handle this is to have a single tokenized web.xml (if only some values change between the two) and use a filtered copy (load ${build.production}.properties).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123