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 <[email protected]>
> To: Ant Users List <[email protected]>, [email protected]
> Subject: Re: Possible to dynamically reference a property?
> Sent: Jan 25 '11 16:08
>
> On Tue, Jan 25, 2011 at 3:58 PM, <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]