Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 46506 invoked from network); 12 Jan 2005 18:26:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Jan 2005 18:26:24 -0000 Received: (qmail 29368 invoked by uid 500); 12 Jan 2005 18:26:14 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 29274 invoked by uid 500); 12 Jan 2005 18:26:14 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 29201 invoked by uid 99); 12 Jan 2005 18:26:13 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from gate.corvil.net (HELO corvil.com) (213.94.219.177) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 12 Jan 2005 10:26:13 -0800 Received: from [172.18.1.171] (angel.local.corvil.com [172.18.1.171]) by corvil.com (8.12.9/8.12.5) with ESMTP id j0CIQ8wS002450 for ; Wed, 12 Jan 2005 18:26:09 GMT (envelope-from peterreilly@apache.org) Message-ID: <41E56C21.3040709@apache.org> Date: Wed, 12 Jan 2005 18:27:45 +0000 From: Peter Reilly User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: local properties References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jose Alberto Fernandez wrote: >I like as it is short, and it does not make any assumption >about the usage of the name. (Notice that the name can be used for a >property >but can as well be used for a reference or something else. > >So, the original example would look like: > > > > > > > The length of file '@{filename}' is ${@{local-prop}} > > > >OK, can the person applying the patch for the local properties also >apply >my patch with the corresponding modifications in the name? > > I can do that. Is "define" a good name ? Peter >Otherwise, I will need to dig it out from home since I do not have it >at hand from work. > >Let me know it you prefer me to apply it. > >Cheers, > >Jose Alberto > > > >>-----Original Message----- >>From: Peter Reilly [mailto:peterreilly@apache.org] >>Sent: 11 January 2005 15:41 >>To: Ant Developers List >>Subject: Re: local properties >> >> >>Jose Alberto Fernandez wrote: >> >> >> >>>>From: Peter Reilly [mailto:peterreilly@apache.org] >>>> >>>> >>>> >>>> >>>> >>>>>Wouldn't mind having the two, and see what works best. :-) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>Sounds good, but is it possible to get a different name than "let" ? >>>> >>>> >>>> >>>> >>>> >>>Hey, just propose a name for it. I am flexible... :-) >>> >>> >>> >>> >>> >>Stefan's suggestion of "defvar" or "define-property" is on >>the correct >>lines. >>Perhaps "defineproperty name='name'" to define a property >>name accessed >>by @{name} or >>${@{name}} to get the value. >>and "localproperty name='name'" to define a local property >>accessed by >>name or ${name} to >>get the value. >> >>(the - in the orginal "local-property" suggestion will only work for >>typedefed tasks and not >>for nested elements discovered by Introspection). >> >>Peter >> >> >> >>>Jose Alberto >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org >>>For additional commands, e-mail: dev-help@ant.apache.org >>> >>> >>> >>> >>> >>> >>> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org >>For additional commands, e-mail: dev-help@ant.apache.org >> >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org >For additional commands, e-mail: dev-help@ant.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org