ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob van Oostrum <rvanoost...@ezgov.com>
Subject Re: nested property references
Date Thu, 26 Apr 2001 09:25:57 GMT
one more try ...

Rob van Oostrum wrote:

> I'm able to set a parameter like this:
>
> (this property defined in master build.xml file)
>
> <property name="secondpart" value="some_component" />
>
> (this property defined in component.xml, which is called by build.xml for
> each component. The variable property names allow me to let developers
> override specific properties for specific components without them needing to
> go into the build scripts themselves every time they get a newer version of
> these scripts from version control)
>
> <property name="firstpart.${secondpart}" value="value" />
>
> It works so far. I run into problems as soon as I need to reference the
> property:
>
> ${firstpart.some_component} works fine, but of course I don't know the value
> of ${second_part}, so I try ${firstpart.${second_part}}, which doesn't work.
> Any ideas what I need to do differently syntax-wise, or is this just
> impossible?
>
> thanks
> Rob


Mime
View raw message