ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Murdoch <adammurd...@apache.org>
Subject Re: [myrmidon] -ref vs ${}
Date Mon, 08 Apr 2002 08:42:24 GMT
On Mon, 8 Apr 2002 18:29, Diane Holt wrote:
> --- Peter Donald <peter@apache.org> wrote:
> > >     <sometype id='value' ....../>
> > >     <property name='prop' value='${value}'/>
> > >     <sometask myAttribute='${prop}'/>
> >
> > This will be true of all types because we unify the proeprty/datatype
> > namespace.
>
> So are you saying you'd no longer have to do:
>   <path id="somepath".../>
>   <property name="somepath" refid="somepath"/>
> in order to be able to echo out the value of "somepath"?
>

Exactly.  You can do stuff like:

<path id="somepath" ../>
<log>somepath = ${somepath}</log>

This only works for types that can be converted to a string.

-- 
Adam

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


Mime
View raw message