ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ludovic Claude>
Subject Re: ANT's strange semantics and proposed change
Date Fri, 25 Feb 2000 12:30:51 GMT
William Uther wrote:

> I suggest a new way of handling things:
> ProjectHelper only instantiates targets.  Each target simply holds a
> pointer to its DOM object without actually building all the tasks.
> When a target is executed it builds the enclosed tasks one at a time, sets
> their attributes and executes them.  Because each task is created, set and
> executed in order there is no reason to have an init() method where
> properties are set.  They can be set in the execute() method and they will
> change the attributes of future tasks.
> Thoughts, comments?
> \x/ill            :-}

It definitely looks like the way to go. The only problem is that you induce a
between Target and the DOM. It would be better to abstract the way ant gets its
by using the Configuration interface defined in the Avalon project (another
apache project),
and use their xml loader. The good thing it that it already use SAX, which give
better report
on xml parsing errors.
And also it would bring some people to have a look at Avalon, which is a good
project but
looks a little bit dead at present...


View raw message