ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
Subject RE: programmatically creating and marshalling antfiles
Date Mon, 08 Aug 2005 10:49:36 GMT
> From: Jack Woehr [mailto:jax@well.com] 
> 
> 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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message