Re: programmatically creating and marshalling antfiles

2005-09-03 Thread Steve Loughran
jonathan gold wrote: hi. i'm getting back to this now, and saw that there were a few more responses. to answer your question -- it's the latter. i've gone the xml route. the problem is that i have many modules interacting to build a project, and it's difficult, though not impossible, to do

RE: programmatically creating and marshalling antfiles

2005-09-02 Thread Jose Alberto Fernandez
> From: jonathan gold [mailto:[EMAIL PROTECTED] > > Jose Alberto Fernandez wrote: > > > > 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

Re: programmatically creating and marshalling antfiles

2005-09-01 Thread jonathan gold
Jose Alberto Fernandez wrote: From: Jack Woehr [mailto:[EMAIL PROTECTED] 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 setter

Re: programmatically creating and marshalling antfiles

2005-08-12 Thread Steve Loughran
Jack Woehr wrote: 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. also there is the issue of add

RE: programmatically creating and marshalling antfiles

2005-08-10 Thread Jose Alberto Fernandez
> From: Jack Woehr [mailto:[EMAIL PROTECTED] > > 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 > > pro

Re: programmatically creating and marshalling antfiles

2005-08-09 Thread jonathan gold
Jack Woehr wrote: 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 th

Re: programmatically creating and marshalling antfiles

2005-08-09 Thread Alexey Solofnenko
Maybe it is better not to write the project at all, but construct it on a fly and execute it right a way. Of cause, if project creation is slow, you might want to cache the result. In that case, maybe you can log all actions in your own format and do not create ANT XML. - Alexey. On 8/6/05, jona

Re: programmatically creating and marshalling antfiles

2005-08-09 Thread 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 b

Re: programmatically creating and marshalling antfiles

2005-08-09 Thread Steve Loughran
Jack Woehr wrote: Jose Alberto Fernandez wrote: One of the problems here is that it is not always possible to reconstruct the XML for a particular TASK. That is, tasks MUST have setXXX methods for every attribute, but there is no requirement that they provide a corresponding getXXX. Simillar fo

Re: programmatically creating and marshalling antfiles

2005-08-09 Thread Steve Loughran
Jack Woehr wrote: Conor MacNeill wrote: jonathan gold wrote: are there libraries i've somehow missed in the ant api that allow me to take a Project object i've built programmatically and write it as an antfile to some OutputStream? You have not missed anything as there are no librarie

Re: programmatically creating and marshalling antfiles

2005-08-09 Thread Jack Woehr
Antoine Levy-Lambert wrote: Hello Jack, I think that it is as you said an "entrepreneurial opportunity", I am not sure whether any committer would try to do it. Well, it can't be done without the cooperation of the committers because it implies (henceforth and for all time) a requirement for

Re: programmatically creating and marshalling antfiles

2005-08-09 Thread Antoine Levy-Lambert
August 08, 2005 5:36 PM Subject: Re: programmatically creating and marshalling antfiles > Jose Alberto Fernandez wrote: > > >One of the problems here is that it is not always possible > >to reconstruct the XML for a particular TASK. That is, > >tasks MUST have setXXX meth

Re: programmatically creating and marshalling antfiles

2005-08-08 Thread Jack Woehr
Jose Alberto Fernandez wrote: One of the problems here is that it is not always possible to reconstruct the XML for a particular TASK. That is, tasks MUST have setXXX methods for every attribute, but there is no requirement that they provide a corresponding getXXX. Simillar for create, addXX

RE: programmatically creating and marshalling antfiles

2005-08-08 Thread Jose Alberto Fernandez
> From: Jack Woehr [mailto:[EMAIL PROTECTED] > > Conor MacNeill wrote: > > >jonathan gold wrote: > > > > > >>are there libraries i've somehow missed in the ant api that > allow me > >>to take a Project object i've built programmatically and > write it as > >>an antfile to some OutputStream

Re: programmatically creating and marshalling antfiles

2005-08-07 Thread Jack Woehr
Conor MacNeill wrote: jonathan gold wrote: are there libraries i've somehow missed in the ant api that allow me to take a Project object i've built programmatically and write it as an antfile to some OutputStream? You have not missed anything as there are no libraries in Ant to do thi

Re: programmatically creating and marshalling antfiles

2005-08-07 Thread Conor MacNeill
jonathan gold wrote: > are there libraries i've somehow missed in the ant api that allow me to > take a Project object i've built programmatically and write it as an > antfile to some OutputStream? You have not missed anything as there are no libraries in Ant to do this. There may be external proj