Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 48887 invoked from network); 9 Jul 2008 10:55:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jul 2008 10:55:11 -0000 Received: (qmail 19350 invoked by uid 500); 9 Jul 2008 10:55:04 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 19303 invoked by uid 500); 9 Jul 2008 10:55:04 -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 19292 invoked by uid 99); 9 Jul 2008 10:55:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 03:55:04 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [80.237.217.28] (HELO heusm102.pcvisit.de) (80.237.217.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 10:54:11 +0000 Received: (qmail 4354 invoked from network); 9 Jul 2008 12:53:31 +0200 Received: from unknown (HELO ?127.0.0.1?) (145.253.108.51) by mail1.pcvisit.de with SMTP; 9 Jul 2008 12:53:31 +0200 Message-ID: <487498AB.6010900@pcvisit.de> Date: Wed, 09 Jul 2008 12:53:31 +0200 From: =?ISO-8859-1?Q?Andr=E9_Pilz?= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Ant Users List Subject: Re: overwriting property specified in different files. References: <18358563.post@talk.nabble.com> In-Reply-To: <18358563.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello, that is standard behaviour for ant. The first property definition wins. A simple solution for this example is to load the second property file first. Also see the Task in ant-contrib, but I never needed it. Cheers, Andre wizshah schrieb: > I have two following lines added to my build.xml. > > > 1. > > 2. file="${env.DEVHOME}/usr/home/${env.projectname}/config.properties"/> > > It can be seen that I have two config.properties being loaded. Thats runs > fine. All properties are loaded. But here the problem is that if I have the > same property in the second file it does not overwrite the old one. > for instance I have a temp variable set like temp=temp in the first config > i.e. config/config.properties > > where as I want to over write it in the second config i.e. > ${env.projectname}/config.properties like temp=xyz > > But ant does not overwrite it. Can any one help me out how I can achieve > this? > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org