Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 66174 invoked from network); 15 Apr 2008 02:09:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Apr 2008 02:09:48 -0000 Received: (qmail 59263 invoked by uid 500); 15 Apr 2008 02:09:46 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 59221 invoked by uid 500); 15 Apr 2008 02:09:46 -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 59210 invoked by uid 99); 15 Apr 2008 02:09:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2008 19:09:46 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [129.184.85.11] (HELO odin2.bull.net) (129.184.85.11) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2008 02:08:53 +0000 Received: from fr-hub.frcl.bull.fr (fr-hub.frcl.bull.fr [129.184.87.22]) by odin2.bull.net (8.9.3/8.9.3) with ESMTP id EAA73774 for ; Tue, 15 Apr 2008 04:19:12 +0200 Received: from [129.184.13.106] ([129.184.13.106]) by bjn-001.bull.net (Lotus Domino Release 6.0.1) with ESMTP id 2008041509424507-48 ; Tue, 15 Apr 2008 09:42:45 +0800 Message-ID: <48040CD0.7040000@bull.net> Date: Tue, 15 Apr 2008 10:02:56 +0800 From: Olivier Gies Reply-To: olivier.gies@bull.net Organization: Bull Information Systems (Beijing) Co., Ltd. User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Ant Users List Subject: Re: Is recursive property evaluation supported? References: <745B9EDF57802349B13F90E4E0B4B86C3B9F1D5BFA@HOUEXCH012.corp.halliburton.com> In-Reply-To: <745B9EDF57802349B13F90E4E0B4B86C3B9F1D5BFA@HOUEXCH012.corp.halliburton.com> X-MIMETrack: Itemize by SMTP Server on BJN-001/CN/BULL(Release 6.0.1|February 07, 2003) at 04/15/2008 09:42:45, Serialize by Router on FR-HUB/FR/BULL(Release 5.0.11 |July 24, 2002) at 15/04/2008 04:09:12, Serialize complete at 15/04/2008 04:09:12 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org -------- Original Message -------- Subject: Is recursive property evaluation supported? From: Shawn Castrianni To: 'Ant Users List' Date: 15/04/2008 07:12 > I was trying to present a list of choices for the user like an interactive textual menu. I produced the list of choices and set a property for each. The user inputs a number corresponding to the choice he wants, and I get the value corresponding to that choice via my properties I set. However, it doesn't work because I need to evaluate a recursive property expression: > > ${releaseName.${releaseName.selection}} > > where ${releaseName.selection} would evaluate to the number they typed in [1, 2, 3...] and then the outer property would be evaluated like ${releaseName.1} if they picked 1. > > Is this supported? I was able to mix parameter evaluation inside property evaluation and it worked fine: > > ${dllName.@{submodule}} > > So I was surprised my recursive property evaluation didn't work. > > Any help presenting a list of choices to the user where they pick the number corresponding to their choice would also be helpful. > > --- > Shawn Castrianni > > ---------------------------------------------------------------------- > This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. > To my knowledge, this is not supported. The fact that mixed ${ @{ } } works, is most likely due to the 2-time processing by the first, then by the main Ant property parser. If you want to achieve the same purpose as a nested ${ ${} }, I suggest you use from ant-contrib, like this: See ant-contrib documentation for more details. BR, Olivier --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org