how to modify web.xml
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ilija_Obucina
Posted On:   Saturday, June 15, 2002 08:04 PM

I am writing simple ant script file for a web project that I am working on One of the tasks is to modify web.xml file since development and production environment are different. For example my file contains: SMTPServer server.company.com If server.company.name is different in production and developement environment and it is also differernt between different developers how to write common build.xml file which will replace that value with one that is used in production environment? I can not use replace task since server.company.com for two developers could be different. Regerds, Ilija    More>>


I am writing simple ant script file for a web project that I am working on

One of the tasks is to modify web.xml file since development and production

environment are different. For example my file contains:

			

SMTPServer
server.company.com


If server.company.name is different in production and developement

environment and it is also differernt between different developers how

to write common build.xml file which will replace that value with one

that is used in production environment? I can not use replace task since

server.company.com for two developers could be different.




Regerds,

Ilija    <<Less

Re: how to modify web.xml

Posted By:   Erik_Hatcher  
Posted On:   Sunday, June 16, 2002 05:38 PM

Have a look at the filter capability of . Create a templated web.xml, and at build time copy it to a temporary build directory, replacing tokens from a development or production properties file.


Reply back if you need more details - provide your trials here so we have something to work with.

About | Sitemap | Contact