I use ant's replace task to generate my context.xml from a template version. QA builds replace using a qa.properties file and production builds replace using a prod.properties -- They contain datasource definitions where the URLs and the connection pool variables differ. Otherwise, the context.xml-s are the same.
This may or may not be helpful, depending on exactly what you want to do with generation. I've also written XML parser tools to generate context.xml, and web.xml, and to insert XML and/or change fragments at build or installation time. Tim -----Original Message----- From: Richard Toren [mailto:[EMAIL PROTECTED] Sent: Sunday, April 23, 2006 9:12 AM To: Tomcat Users List Subject: Re: ANT task for context.xml generation? Mark Thomas wrote: > Nikita Tovstoles wrote: > >> Is there an ANT task for generating context.xml files? > > > No. > > Mark > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Sounds like another reason to learn Maven/Xdoclet, although for now I will continue to code my context.xml files by hand. Richard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]