Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 52771 invoked from network); 12 Sep 2006 09:33:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Sep 2006 09:33:23 -0000 Received: (qmail 64073 invoked by uid 500); 12 Sep 2006 09:33:17 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 64036 invoked by uid 500); 12 Sep 2006 09:33:17 -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 64025 invoked by uid 99); 12 Sep 2006 09:33:17 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2006 02:33:17 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=lists@nabble.com; spf=pass X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: pass (idunn.apache.osuosl.org: domain nabble.com designates 72.21.53.35 as permitted sender) Received: from ([72.21.53.35:46035] helo=talk.nabble.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id C1/B5-00869-6EE76054 for ; Tue, 12 Sep 2006 02:33:26 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GN4dj-0000ut-C9 for user@ant.apache.org; Tue, 12 Sep 2006 02:33:11 -0700 Message-ID: <6262695.post@talk.nabble.com> Date: Tue, 12 Sep 2006 02:33:11 -0700 (PDT) From: "Jack.Tang" To: user@ant.apache.org Subject: Re: AW: How to set dynamic variables in Ant? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: himars@gmail.com References: <6260655.post@talk.nabble.com> <45065FB6.6090208@free.fr> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks for all ! propertycopy works for me now. Thank you again. /Jack Jan.Materne wrote: >=20 > http://ant.apache.org/faq.html#propertyvalue-as-name-for-property >=20 > Jan > =20 >=20 >>-----Urspr=C3=BCngliche Nachricht----- >>Von: Mathieu Champlon [mailto:m.champlon@free.fr]=20 >>Gesendet: Dienstag, 12. September 2006 09:20 >>An: Ant Users List >>Betreff: Re: How to set dynamic variables in Ant? >> >>Jack.Tang a =C3=A9crit : >>> Hi, >>> >>> Here is the problem I am now facing: >>> >>> >>> >>> >>> >>> =20 >>> >>> >>> Some todo items in todo.list are >>> 20060912.todo =3D foo >>> 20060912.todo =3D bar >>> >>> Appreciate your suggestion to solve this problem. >>> Thanks >>> =20 >>Hello ! >> >>Take a look at the ant-contrib task :=20 >>http://ant-contrib.sourceforge.net/tasks/tasks/propertycopy.html >> >>However you will probably not achieve what you are looking for=20 >>by having several occurences of the same property in your=20 >>todo.list file : see=20 >>http://ant.apache.org/manual/CoreTasks/property.html for a=20 >>description of how properties (and property files) work. >>You should try and make them lists somehow, like : >> >>20060912.todo =3D foo,bar >> >>Or maybe even use a complete different file format (xml ?). >> >>I hope this helps. >> >>MAT. >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 >>additional commands, e-mail: user-help@ant.apache.org >> >> >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/How-to-set-dynamic-vari= ables-in-Ant--tf2257054.html#a6262695 Sent from the Ant - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org