ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@us.ibm.com
Subject RE: [RFE] Richer Task Specification
Date Thu, 15 Jun 2000 01:41:10 GMT


Peter Donald wrote:
> But scripting should prolly deal with the XML tree
> rather than directly with objects so you are not tied
> to any particular implementation ???

A second reason is that there is no XML tree.  The parser is SAX, which
simply fires off events as it is reading the file.

The way this currently works is that when the following is read:

   <action foo="bar">

This results in a creation of an actionTask object, then a call to
setFoo("bar") on that object, then a call to init().  So for the
circumstances where the object can't be created yet, instead of calling
setFoo("bar"), the name of the attribute and value must be stashed away
somewhere and processed later.

- Sam Ruby



Mime
View raw message