ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: replacement of properties in addText(String)
Date Fri, 24 Oct 2003 13:56:53 GMT
> From: peter reilly []
> Sent: Friday, October 24, 2003 7:59 AM
> To:
> Subject: replacement of properties in addText(String)
> In
> there is a discussion about whether ant core should
> do property replacement or whether a new introspection
> method could be added to do this.
> If a new introspection method is added (this is quite easy
> to do), what should it be called?
> I was thinking of addExpandedText(), but there could
> be tasks out there with <exandedtext/> elements.
> Peter

Why not simply addText(String message, boolean replaceProperties)?

Since it's a two-args method, it can no longer conflict with an
introspection point.

Also, can someone explain me why Ant merges all the text segments of a node,
when this node contains child elements? SAX doesn't, so why does Ant merge
them? You thus loose the relative ordering between the child elements and
the text notes... I'm sure someone will argue against mixed content, but
adding String to a StringBuffer upon each call to addText(String) is no big
deal at all IMHO, and the current behavior prevents useful uses of the lost
ordering. Thanks, --DD

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message