From user-return-72138-apmail-ant-user-archive=ant.apache.org@ant.apache.org Fri Dec 16 18:40:45 2011 Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1AEC9D25 for ; Fri, 16 Dec 2011 18:40:45 +0000 (UTC) Received: (qmail 35920 invoked by uid 500); 16 Dec 2011 18:40:45 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 35877 invoked by uid 500); 16 Dec 2011 18:40:45 -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 35869 invoked by uid 99); 16 Dec 2011 18:40:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2011 18:40:45 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gudnabrsam@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pw0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2011 18:40:34 +0000 Received: by pbdd3 with SMTP id d3so1195226pbd.4 for ; Fri, 16 Dec 2011 10:40:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=lg3rVtHU8zYAV0RllVoo1a1mE7DseFqQaPGKFLH0G0c=; b=QUVUUqeJ8kQTuRnvKZxRjz+oUpfn+WxcRYyv2E9qJIV5qzz4Kpw56upsJUTl1aGMff b2Z41QD4PaZuWdynCgJeTVoMXmuO8zNtttbXIUaYR/Ns8sj/30a6xUM7tZhWzI4aBcht /GBySbXUdHOVJmkZUOSfirHX0XN5n5FB13B8E= MIME-Version: 1.0 Received: by 10.68.74.3 with SMTP id p3mr17659938pbv.131.1324060813103; Fri, 16 Dec 2011 10:40:13 -0800 (PST) Received: by 10.142.76.19 with HTTP; Fri, 16 Dec 2011 10:40:13 -0800 (PST) Reply-To: gudnabrsam@gmail.com In-Reply-To: <330B5A2BAB417E47A0BBB442C7BCB99D03F166BE@HQ-MAIL8.ptcnet.ptc.com> References: <1323973350978-5078347.post@n5.nabble.com> <330B5A2BAB417E47A0BBB442C7BCB99D03F166BE@HQ-MAIL8.ptcnet.ptc.com> Date: Fri, 16 Dec 2011 12:40:13 -0600 Message-ID: Subject: Re: Property not loaded From: Matt Benson To: Ant Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Dec 15, 2011 at 4:45 PM, Perrier, Nathan wrote: > You can't do that! =A0Double interpolation doesn't work. > > Fortunately, you can use a macro to accomplish it: > > =A0 =A0 =A0 > =A0 =A0 =A0 > =A0 =A0 =A0 > =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 > =A0 > Another possibility is the nested PropertyExpander provided by http://ant.apache.org/antlibs/proper.html#props . Matt > -----Original Message----- > From: Vinodh Kumar [mailto:vinohymi@gmail.com] > Sent: Thursday, December 15, 2011 12:23 PM > To: user@ant.apache.org > Subject: Property not loaded > > Hi, > > Can someone let me know why the /${${env}.test} value not printed as > testest1/ > > *cmd*:ant -f build.xml -Denv=3DIT1 > > *build.xml* > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0${env} > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0${${env}.test} > =A0 =A0 =A0 =A0 > > > *build.properties* > IT1.test=3Dtestest1 > > > *OUTPUT:* > task: > =A0 =A0 [echo] IT1 > =A0 =A0 [echo] ${${env}.test} > > BUILD SUCCESSFUL > Total time: 0 seconds > > -- > View this message in context: > http://ant.1045680.n5.nabble.com/Property-not-loaded-tp5078347p5078347.h > tml > Sent from the Ant - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org