ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: macrodef - do attributes as properties or substitutions
Date Tue, 18 Nov 2003 08:05:30 GMT
> > <macrodef name="macro">
> >     <attribute name="one"/>
> >     <attribute name="two" default="${one}"/>
> > </macrodef>
> > <macro one="hello"/>
> 
> I don't think we should need any special cludges just to support this
> usecase. 8-)
> 
> Give two a completely bogus, impossible to be used in any real world
> usage value and check for that.  Should be easier than comparing it to
> a literal ${one} or @one or whathever.
> 
> <macrodef name="macro">
>     <attribute name="one"/>
>     <attribute name="two" 
>       
> default="nobody-with-a-sane-mind-would-ever-want-to-use-this-value"/>
> </macrodef>

Nice idea - usually such nice words don´t come into my mind when I´m
programming :-)
But the string comparison would be easier.

Jan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message