The Executor interface also declares a getSubProjectExecutor() method; probably the parallel executor would return itself (Ant's default target executor returns a SingleCheckExecutor for executing subprojects i.e. ant/antcall/subant). If not, that's why it's pluggable... :) The real problem is that subant still doesn't support parallel, so you'd have to have a single project, one subbuild to each target. You could generate the buildfile for this, or create the project programmatically, but then you might as well generate a buildfile that uses <parallel>. Parallelizing subant is probably the best bet... so yeah, I didn't think all that through the first time. :)
-Matt --- Jeffrey E Care <[EMAIL PROTECTED]> wrote: > Wouldn't a parallel target executor (by definition) > only help for targets? > > If so I don't see how that would help with parallel > execution of > sub-builds, because targets are statically defined > and the problem > statement in this case is that they don't want to > statically define the > sub-builds. > > Not to say that I think a parallel executor is > valueless, I just don't see > how it would help in this case. > ____________________________________________________________________________________________ > > > Jeffrey E. (Jeff) Care > [EMAIL PROTECTED] > IBM WebSphere Application Server Development > WAS Pyxis Lead Release Engineer > > > > > Matt Benson <[EMAIL PROTECTED]> wrote on > 05/18/2006 02:00:10 PM: > > > One of the Ant committers, Alexey Solofnenko, was > at > > one time working on a parallel target executor > which > > would apply to an entire build. Depending on its > > state it might be useful here. Alexey? > > > > -Matt > > > > --- Jeffrey E Care <[EMAIL PROTECTED]> wrote: > > > > > The short answer is no. > > > > > > The longer answer is that there was some > discussion > > > on the dev. list about > > > adding parallelization to the <subant> task, but > > > even the chances of that > > > being implemented anytime soon are slim. > > > > > > JEC > > > > > > ____________________________________________________________________________________________ > > > > > > > > > Jeffrey E. (Jeff) Care > > > [EMAIL PROTECTED] > > > IBM WebSphere Application Server Development > > > WAS Pyxis Lead Release Engineer > > > > > > > > > > > > > > > "Antony, Sony" <[EMAIL PROTECTED]> > wrote on > > > 05/18/2006 01:23:26 > > > PM: > > > > > > > We have a set of directories each containing > ejbs > > > targeted for weblogic. > > > > Each of these are independent of others and > can be > > > compiled in parallel. > > > > > > > > I thought about the <parallel> task. But we do > not > > > want to hard code the > > > > names of the directories in the build.xml as > new > > > ones get created and > > > > old ones get deleted. > > > > > > > > > > > > I also tried something like > > > > <parallel> > > > > <apply ... > > > > </apply> > > > > </parallel> > > > > > > > > which didn't work either. > > > > Is there a way for us to do this using > <fileset>( > > > which will contain > > > > the list of directories ) > > > > > > > > Thanks you > > > > --sony > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
