Thanks Conner, I wanted to make this point but didn't want to contradict Scott twice in a row. Sorry Scott. ;^)
Consider a non trivial build process that takes, say, 1 hour to do clean build. This is driven by a 3000 line build.xml file. Unless I am mistaken, Ant builds an internal data structure representing the tasks to be executed and then executes the data structure (hand wave...hand wave). An Ant compiler would replace the parsing stage by serializing or otherwise constructing this data structure in a jar file. Question: Of the 1 hour processing time, how long did it take to parse 3000 lines of Ant and create the data structure? If Ant does have performance problems for large projects, parsing the build.xml file isn't one of them. Regards Donald. > -----Original Message----- > From: Conor MacNeill [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 26 November 2003 10:45 AM > To: Ant Users List > Subject: Re: Could Ant build scripts be compiled? > > > On Wed, 26 Nov 2003 03:31 am, Clifton Craig wrote: > > I thought about this too. It is indeed very interesting. One thing that > > would suffer is the ability for build files to generate build files (using > > XSLT or whatever means) which could be directly executed by the Ant > > I've done something like this once > > An XSL to convert a build to a Java class > http://cvs.apache.org/viewcvs.cgi/ant/proposal/mutant/build/Attic/bootstrap.xsl?rev=1.3&co > ntent-type=text/vnd.viewcvs-markup > > The resulting generated class > http://cvs.apache.org/viewcvs.cgi/*checkout*/ant/proposal/mutant/src/java/bootstrap/org/ap ache/ant/builder/Attic/MutantBuilder.java?rev=1.7 > > This was for bootstrapping so it tended to avoid using too many Ant classes. > > Overall, I'm not sure I would recommend this approach. If performance is the > issue, I'd want to understand the nature of the performance problems first. > i.e. is XML parsing the real bottleneck? > > Conor > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]