> From: peter reilly [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 24, 2003 7:59 AM
> To: [EMAIL PROTECTED]
> Subject: replacement of properties in addText(String)
> 
> In
> http://issues.apache.org/bugzilla/show_bug.cgi?id=11585
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to