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 Fri, 27 Apr 2001 15:46:57 GMT
I have a few comments:

- I agree that it is possible that you can work around not having nested
property suppport. But I do consider it a workaround. Giving me a
workaround IMHO does not constitute an argument why the feature itself
is not needed.
- I think that for all practical purposes Ant should either support
nested property references, or it *shouldn't* support setting them (as
in using a property reference in setting the name of a property). The
latter currently works, but it's a useless feature, since you'll never
be able to reference it using the property reference in the property
name. Ant should either do it right, or not at all.

So I think it's just a much more elegant way of setting things up. If
not for any immediate need, I would like to see it in there for the sake
of implementing property references properly. We can go back and forth
with examples of what I'd like to use the functionality for, and how we
can bend over backwards to (mis-) use other functionality, but as I
stated previously, I think this is only a workaround. More than new
functionality, it's just something that IMHO should have been supported
from the start. I know writing recursive code gets really complex really
fast. But there must be enough people in the dev community that are able
to fork this out without breaking a sweat. If someone points me in the
right direction (where are property refs implemented at the moment? ...)
I'll do the coding myself.

Also: a point about references to non-existing properties. I think those
should always generate errors (which they don't, it just causes the
property reference to be used unresolved, which looks very ugly to me).


cheers
Rob


Stefan Bodewig wrote:

> Dave Knox <dknox@iona.com> wrote:
>
> > archives.base.dir=archives
> > archives.ow32jdk12.dir=${archives.base.dir}/ow32jdk12
> > archives.ow32jdk13.dir=${archives.base.dir}/ow32jdk13
> > archives.o2kjdk13.dir=${archives.base.dir}/o2kjdk13
>
> You can do this in the build file as well, what JD and Rob have been
> asking for would be something like ${archives.${module}.dir} to
> dynamically swith between the three values you define above.
>
> Stefan


Mime
View raw message