Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 49031 invoked from network); 23 Jul 2008 15:36:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2008 15:36:10 -0000 Received: (qmail 16168 invoked by uid 500); 23 Jul 2008 15:35:57 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 16143 invoked by uid 500); 23 Jul 2008 15:35:57 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 16132 invoked by uid 99); 23 Jul 2008 15:35:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 08:35:57 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.30.32] (HELO QMTA03.emeryville.ca.mail.comcast.net) (76.96.30.32) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 15:35:01 +0000 Received: from OMTA06.emeryville.ca.mail.comcast.net ([76.96.30.51]) by QMTA03.emeryville.ca.mail.comcast.net with comcast id tSu81Z00R16AWCUA3TZypU; Wed, 23 Jul 2008 15:33:58 +0000 Received: from [192.168.1.121] ([68.55.225.178]) by OMTA06.emeryville.ca.mail.comcast.net with comcast id tTZx1Z0013ra03G8STZxbh; Wed, 23 Jul 2008 15:33:58 +0000 X-Authority-Analysis: v=1.0 c=1 a=Ceo2FJgUOUEA:10 a=MxKqavPu49QA:10 a=xe8BsctaAAAA:8 a=Q_akN4J1ZJzGTtwHJ7sA:9 a=zzzis1t0UpAjlRdOSosA:9 a=cgO5eQfIJhQhEp3ufAMyPZ-4UdoA:4 a=rPt6xJ-oxjAA:10 Message-ID: <48874F64.9040605@christopherschultz.net> Date: Wed, 23 Jul 2008 11:33:56 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Can I pass values to application configuration file on command line References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jim, Jim Cant wrote: | Is there a way I can use replaceable parameters in an application's xml | configuration file and pass a value in on the Tomcat command line. In | particular, I would like to set the value of docBase so that I can launch | tomcat and have it find my app in different locations without having to edit | the xml config file. We use ant for this purpose. We just create a server.xml template with replaceable parameters embedded in the file and then use ant's filtering capability when copying the template to the actual deployment location to do the replacements for us. I don't know if that fits into your deployment strategy, but we've kind of built ours around that, so it works well for us ;) - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiHT2QACgkQ9CaO5/Lv0PC+fQCfexAq2LSyHpNk7aTVVd05A/Sf cD0An1tDsy/DuEyrZlnRIxR0fwrr43Uk =urBA -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org