ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack J. Woehr" <...@purematrix.com>
Subject Re: Possible Ant 1.7 alpha bug: property expansion.
Date Wed, 02 Jun 2004 19:55:23 GMT
Dominique Devienne wrote:

> > From: Jack J. Woehr [mailto:jax@purematrix.com]
> >
> > Dominique Devienne wrote:
> >
> > > I believe that ${${a}.${b}} is parsed as:
> > >
> > > getProperty("${a") + "." + getProperty("b") + "}", thus the result. --DD
> >
> > Well, it sure looks like it is :-)
> >
> > But is that result reasonable? It looks more to me like an artifact of a
> > coding strategy being elevated to a principle.
>
> First, don't shoot the messenger ;-)
>
> Second, what's one to do? Ant by contract does not support nested
> properties, so what's Ant to do when it sees on opening ${?

Glad you ask.

     Ant should behave analagously to m4: recursively expand until it either hits
     ground or an uninstantiated ${decorated} name.

--
Jack J. Woehr      # We have gone from the horse and buggy
Senior Consultant  # to the moon rocket in one lifetime, but
Purematrix, Inc.   # there has not been a corresponding moral
www.purematrix.com # growth in mankind. - Dwight D. Eisenhower




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message