Hi Eric, > -----Original Message----- > From: Eric Pugh [mailto:[EMAIL PROTECTED] > Sent: 26 February 2004 20:17 > To: [EMAIL PROTECTED] > Subject: Copying Tomcat <context> file with Maven Plugin and Cactus 1.6 > dev > > Hi all, > > My directory structure is set up to have an embedded tomcat: > > /src/java > /src/test > /src/test-cactus > > /tomcat/conf > /tomcat/webapps/catalog.xml > > > The /tomcat/webapps/catalog.xml contains my JDBC datasource and my > environment variables. This allows me to have these files seperate from > my > /tomcat/conf/server.xml file. > > However, trying to run this under Cactus I have the difficulty that my app > deployed under Cactus managed Tomcat is missing the jdbc and environment > variables! The /tomcat/conf/server.xml that is deployed by Cactus doesn't > have the jdbc and environment properties. It seems like though that if I > copy my /tomcat/webapps/catalog.xml to > $cactus_deploy/tomcat4x/webapps/catalog-cactus.xml along with my > $cactus_deploy/tomcat4x/webapps/catalog-cactus.xml, then everything works > fine.. > > Any suggestions on how I can maybe get the catalog.xml file copied over to > catalog-cactus.xml?
That should be quite easy. You can use the cactus.tomcat4x.conf.dir property (and the cactus.tomcat4x.conf.includes and cactus.tomcat4x.conf.excludes properties). See http://jakarta.apache.org/cactus/integration/ant/task_cactus.html Thus simply point it to a directory where you have put all config files you wish. Thanks -Vincent > > Eric > > > --------------------------------------------------------------------- > 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]
