ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <>
Subject RE: programmatically creating and marshalling antfiles
Date Wed, 10 Aug 2005 10:00:57 GMT
> From: Jack Woehr [] 
> Steve Loughran wrote:
> > Even if you could retro-fit every task out there with getters,
> >   -what about overloaded set operatons? which one should 
> the get return?
> >   -what about property assignments. Tasks get their setters with
> > properties expanded.
> Hmm. Ah, well. Writing out the project seems to be a fairly obvious 
> functionality in comparison
> to some of the exotic functionality of Ant. I guess it's just one of 
> those things which in hindsight
> the design should have accomodated, but which are difficult 
> to retrofit 
> given that the design
> did not so accomodate.

Maybe we are looking at the problem the wrong way.
What is what people want to do?
Do they want to programatically create some project and then 
as an after thought they decide to serialize it to XML? (which will not
Or do they want to create a project programmatically with the intention
of serializing it to XML.

If the later, then the obvious thing to do us to not create tasks
but to create our wrapping objects. Actually, you could just as well
use Jdom to compose the XML and then either serialize it into XML
or produce the Project object out of it (we just need to generate SAX
out of it).

So, maybe there is a way to do it that is actually more natural for
that just knows the ANT-XML syntax.

Jose Alberto

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message