Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 54358 invoked from network); 26 Feb 2007 15:38:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2007 15:38:37 -0000 Received: (qmail 14818 invoked by uid 500); 26 Feb 2007 15:38:30 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 14788 invoked by uid 500); 26 Feb 2007 15:38:30 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 14720 invoked by uid 99); 26 Feb 2007 15:38:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 07:38:29 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ewood@llbean.com designates 216.151.52.51 as permitted sender) Received: from [216.151.52.51] (HELO vmlinux2.llbean.com) (216.151.52.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 07:38:17 -0800 Received: from ct4.llbean.com (ironmail4.llbean.com [172.21.250.248]) by vmlinux2.llbean.com (Switch-2.2.8/Switch-2.2.8) with ESMTP id l1QFbZa12111 for ; Mon, 26 Feb 2007 10:37:35 -0500 Received: from ([10.10.34.81]) by ct4.llbean.com with ESMTP id 5202155.5427058; Mon, 26 Feb 2007 10:37:34 -0500 Received: from FPT-EXMB02.llbean.com ([172.21.250.52]) by FPT-EXFE01.llbean.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 26 Feb 2007 10:37:34 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: How to best create environment specific properties in an applications property file using ANT Date: Mon, 26 Feb 2007 10:37:33 -0500 Message-ID: <54BC0922445A764A86074C5A6B00535402634C55@FPT-EXMB02.llbean.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to best create environment specific properties in an applications property file using ANT Thread-Index: AcdZt/yBYknf0ZxxRZ6AEJhXHDojIgAAo9nQAAAp4yA= References: From: "Eric Wood" To: "Ant Users List" X-OriginalArrivalTime: 26 Feb 2007 15:37:34.0358 (UTC) FILETIME=[0907D360:01C759BC] X-esp: ESP<12>= RBL:<0> RDNS:<0> SHA:<4> UHA:<0> SLS:<0> BAYES:<0> SenderID:<0> NigeriaScam Dictionary (TRU7a): <0> Embed HTML Dictionary (TRU7a): <0> URL Dictionary (TRU7a): <0> HTML Dictionary (TRU7a): <8> Obscenities Dictionary (TRU7a): <0> Porn Dictionary (TRU7a): <0> Spam Dictionary (TRU7a): <0> CAN-SPAM Compliance Dictionary (TRU7a): <0> X-Virus-Checked: Checked by ClamAV on apache.org This is for a utility/tool called hibernate that we are incorporating = into our application and it uses a configuration file called = hibernate.cfg.xml that I do not think that I can split. I'm currently using the expandproperties filterread along with loadfile = to load the environment specific settings. I can't version the = development copy because I haven't found an ANT way to clip the section = of the original file that contains the development environment setting = out before I load the other environment settings in. Eric -----Original Message----- From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]=20 Sent: Monday, February 26, 2007 10:30 AM To: user@ant.apache.org Subject: AW: How to best create environment specific properties in an = applications property file using ANT I would split the properties (build.propeties, prod.propeties, = test.properties, ...) and load two of them: (prod,test,dev...) build.properties contains all properties and in the other files you = could overwrite (that's why it's loaded first) specific values. Jan >-----Urspr=FCngliche Nachricht----- >Von: Eric Wood [mailto:EWood@llbean.com]=20 >Gesendet: Montag, 26. Februar 2007 16:09 >An: Ant Users List >Betreff: How to best create environment specific properties in=20 >an applications property file using ANT > >Folks: > >I'm looking at how to best create different copies of an application >property file using ANT. I have a property file that contains two >sections: one section with environment specific settings that will vary >as it is deployed across test, QA, and production servers and one >section that is constant. Currently, it is versioned in our=20 >source code >repository so it works in the development environment; this way >developers can work with it directly in their environment=20 >without having >to change it. When I build their application using ANT I would like to >generate different versions of the file for environment that I=20 >save save >for later deployment. I was looking at using filterreaders=20 >but they are >not really setup to substitute a block of properties located in the >middle of the file. > >Any thoughts on how I can best do this task? > >Eric > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org