Thank you much for your response. I am looking for a mechanism that would do the inclusion at runtime (as in when Tomcat starts up). Hence I am unable to use gcc. I assumed that the Java property files intrinsically support #include making this transparent to Tomcat itself. Perhaps I am mistaken?
In any event, thanks much for your helpful suggestion. Regards, /U ----- Original Message ----- From: Kees Jan Koster To: Tomcat Users List Sent: Sun, 26 Apr 2009 08:13:41 +0000 (UTC) Subject: Re: #include'ing property files into conf/catalina.properties Dear uma_rk, > We centralize configurations in /etc/conf and hence I would > like to import property configuration files into > ${CATALINA_BASE}/conf/catalina.properties > using #include as in > > // conf/catalina.properties > ... > #include /etc/conf/mytomcat.properties > ... > > Please let me know if this is possible. Not out of the box. I'm sure that you can script something to this effect in your system's startup script though. Add some placeholders and used sed or even gcc's precompiler if you insist on the #include syntax. Personally I store all my configurations in SVN, relying on SVN's diff function to help me iron out any differences. Granted, that won't scale beyond 10 or so Tomcat configurations, but it does the job until you reach that stage. -- Kees Jan http://java-monitor.com/forum/ kjkos...@kjkoster.org 06-51838192 Change is good. Granted, it is good in retrospect, but change is good. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org