> 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? > >> > >> > > > >You have not missed anything as there are no libraries in Ant to do > >this. There may be external projects/code that can do this. > Ant itself > >really only cares about the xml -> Project model direction. > > > > > Sounds like a bugzillable feature request, and a reasonable > one. If it popped up, would any of the committers look at it, > or is this an "entrepreneurial opportunity" :-)? >
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 createXXXX, addXXXX, etc. Hence there is no way to given objects created programatically to get back what the settings for those objects are. Jose Alberto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]