Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 79822 invoked from network); 25 Jun 2004 14:29:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Jun 2004 14:29:43 -0000 Received: (qmail 53195 invoked by uid 500); 25 Jun 2004 14:29:34 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 53098 invoked by uid 500); 25 Jun 2004 14:29:32 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 53048 invoked by uid 99); 25 Jun 2004 14:29:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [207.115.107.230] (HELO hurricane.conveyor.com) (207.115.107.230) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 25 Jun 2004 07:29:31 -0700 Received: from [64.26.136.73] (helo=[192.168.0.157]) by hurricane.conveyor.com with esmtp (Exim 4.22) id 1Bdrhh-0007FK-F4 for user@ant.apache.org; Fri, 25 Jun 2004 10:29:21 -0400 Message-ID: <40DC36C1.4060606@magmic.com> Date: Fri, 25 Jun 2004 10:29:21 -0400 From: Jeffrey Bacon Organization: Magmic Inc. User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: recursive expansion of property names References: <20040623222044.93834.qmail@web20423.mail.yahoo.com> <40DB159A.3E9088F3@purematrix.com> <40DB2C9C.80206@magmic.com> <6.1.1.1.2.20040624172105.02845e28@pop1.mail.com> <40DB50D5.50206@magmic.com> <6.1.1.1.2.20040624181124.0288f1a8@pop1.mail.com> <40DB56E2.9050604@magmic.com> <6.1.1.1.2.20040624191659.0289ccf0@pop1.mail.com> <40DB648D.3080405@magmic.com> <6.1.1.1.2.20040625095350.02835558@pop1.mail.com> <40DC33AD.6080405@magmic.com> In-Reply-To: <40DC33AD.6080405@magmic.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I think it must be that since I'm encapsulating the default property handler, I need to pass EVERY get/set method to the encapsulated property handler and also run them through my recursive resolution algorithm to get them to resolve. -- Jeffrey Bacon jbacon@magmic.com Creative Developer http://www.magmic.com Jeffrey Bacon wrote: > > > > -- assuming macrodef works as advertised (which I have checked without > the custom property handler) then this should resolve (it's in a > macrodef with 'file' as an attribute so I actually use @{file}) > > > > -- > Jeffrey Bacon > jbacon@magmic.com > Creative Developer > http://www.magmic.com > > Wascally Wabbit wrote: > >> At 07:32 PM 6/24/2004, you wrote: >> >sorry, I copied the line from a macro and forgot to modify the @. >> > >> >Your example (first one) doesn't load properties from a file nor import >> >the environment variables. Are they handled differently? >> >> You'd have too look at 's implementation but wrt. the custom >> PropertyHelper I would not think it makes little difference (not >> checked). >> If you're passing all the "sets" and the "gets" through to the original >> helper (Ants) you should be ok. >> >> What is the sample you wanted to show didn't work? The original you >> posted was wrong. >> >> >> >In example two, it should resolve as follows (if everything worked >> correctly): >> > >> >${${_ant}${_dot}${_file}} >> >${ant${_dot}${_file}} >> >${ant.${_file}} >> >${ant.file} >> > >> >ant print: >> >'ant.file(1)': ${ant.file} >> > >> >because ${ant.file} is not defined. >> > >> >if you added the definition: >> > >> > >> >then it would resolve ${ant.file} and print: >> >'ant.file(1)': ant.file >> >> This is still wrong isn't it? I wanted it to resolve to the value >> of the 'ant.file' property (which the Ant runtime already auto-installs). >> But this is a side-issue...you'll have to ping the original author >> of the recursive algo for whether my sample makes sense... >> >> >> >-- >> >Jeffrey Bacon >> >jbacon@magmic.com >> >Creative Developer >> >http://www.magmic.com >> > >> > >> >Wascally Wabbit wrote: >> >>A typo? I don't think normal property expansion recognizes >> >>the '@'; that token is reserved for use inside macros...no? >> >>This works fine for me: >> >> >> >> >> >>This does not work (the recursive code doesn't handle it): >> >> >> >> >> >> >> >> >> >>At 06:34 PM 6/24/2004, you wrote: >> >> >> >>>well that's better. It resolves the ${basedir} now but won't resolve >> >>>properties defined as so: >> >>> >> >>> >> >>> >> >>> >> >>>-- >> >>>Jeffrey Bacon >> >>>jbacon@magmic.com >> >>>Creative Developer >> >>>http://www.magmic.com >> >>> >> >>>[[ snip ]] >> >> >> >>The Wabbit >> >> The Wabbit >> >> >> >> --------------------------------------------------------------------- >> 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