ON the doc it mentions "external" to ANt ...

With the 'props' antlib (external, but also from Ant) you could do the 
dereferencing with ${${anotherprop} - not just in the property task - instead 
everywhere in your buildfile (after registering the required property helper).

<propertyhelper>
  <props:nested />
</propertyhelper>
<property name="foo" value="foo.value" />
<property name="var" value="foo" />
<echo> ${${var}} = foo.value </echo>


So doesn't that mean it would NOT be part of the normal distrib? - Dave


>  -------Original Message-------
>  From: Dominique Devienne <ddevie...@gmail.com>
>  To: Ant Users List <user@ant.apache.org>, dave.alvar...@cartridgeorder.com
>  Subject: Re: Possible to dynamically reference a property?
>  Sent: Jan 25 '11 16:08
>  
>  On Tue, Jan 25, 2011 at 3:58 PM,  <dave.alvar...@cartridgeorder.com> wrote:
>  > Thanks, Dominique.  The nested properties (props) task seems like it will 
> do the job.  However, do you know where to download this thing?  The links 
> don't seem to have anything
>  >
>  > http://ant.apache.org/manual/properties.html
>  > http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
>  
>  props is not a task, but a PropertyHelper extension. I suspect it's
>  part of the normal Ant distrib, so no need to download anything, but
>  I've never used it myself. You could try adding the declaration the
>  FAQ shows to enable it in your own build file and see if it works.
>  --DD
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to