ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@eng.sun.com
Subject Patterns for addXXX ( was: Re: discussion: build file format)
Date Wed, 23 Feb 2000 19:39:27 GMT
Hi,

I noticed the "deep-xml" changes in ProjectHelper and MatchingTask, and 
I have some questions/doubts about the pattern used for the add method.

It seems ant is using 

Object addBar(); 

to create a "bar" object that will be loaded with the properties
 ( <foo> <bar /> </foo> )

Before too many people get used with that, I think we should change that
to:

Object createBar(); 

We can use add methods like: 
void addBar( Object bar );
and I think it's a bit more intuitive, but createXXX() works fine too.




Costin




Mime
View raw message