ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <>
Subject Re: Proposed Revolution: AntEater (a proposal for Ant Core 2.0)
Date Tue, 14 Nov 2000 14:20:16 GMT
At 06:20  14/11/00 -0800, you wrote:
>> > Is your concern with keeping comments and such
>> > inline with the tasks/targets
>> > they represent?
>> Yep. And the ability to traverse a homogeneous
>> structure.
>Duncan, there is another partial reason for supporting
>DOM semantics that was only implied here, and that is
>the GUI will obviously have to write back out the XML
>code that has been edited (marshal the data
>structure). The Sun JAXP api has the concept of an
>XMLWriteContext, which allows you to take the DOM
>structure and output it as an XML stream. I'm hoping
>to get this functionality for free. ;-) If the Ant
>data structure doesn' fit in with the XML DOM, then
>I'll have to traverse the DOM to preserve comments and
>whitespace, and separately traverse the Ant data
>structures with a custom XMLOutputStream (or the like)
>to save it's state.

While it may be easier to do writeout if given this I don't think allowing
this is the "right way" to do things. It may be a bit of a PITA for you to
rewrite the reading code but I think that is a small price to pay for
cleaner core ;)



| Despite your efforts to be a romantic hero, you will |
| gradually evolve into a postmodern plot device.      |

View raw message