The Jakarta Commons project has also a set of independent modules [1]. They have a buildfile for each module. Each module has its own build path. And their master buildfile [2] calls several modules.
Mmmh - there was a discussion when <import> and <subant> were new ... Yep: [3]. And I knew that some of us had done something about that somewhere in the Apache land - it was Erik :) He had refactored the build environment of the Jakarta Lucene Sandbox [4,5] which I would suggest to use as a "template". Basically: - define a common directory layout as properties - map the individual layouts to the properties using property-files - provide a common buildfile [6] defining the "usual" targets (compile, clean, ...) - each module will <import> the common file and override things - provide a master buildfile [7] that iterates over the modules Jan [1] http://cvs.apache.org/viewcvs.cgi/jakarta-commons/ [2] http://cvs.apache.org/viewcvs.cgi/jakarta-commons/build.xml?rev=1.15&view=ma rkup [3] http://marc.theaimsgroup.com/?l=ant-user&m=108670323203258&w=2 [4] http://marc.theaimsgroup.com/?l=ant-user&m=108670387517487&w=2 [5] http://cvs.apache.org/viewcvs.cgi/jakarta-lucene-sandbox/contributions/ [6] http://cvs.apache.org/viewcvs.cgi/jakarta-lucene-sandbox/contributions/commo n.xml?view=markup [7] http://cvs.apache.org/viewcvs.cgi/jakarta-lucene-sandbox/contributions/build .xml?view=markup > -----Urspr�ngliche Nachricht----- > Von: Jean Morissette [mailto:[EMAIL PROTECTED] > Gesendet am: Sonntag, 12. Dezember 2004 00:42 > An: [EMAIL PROTECTED] > Betreff: Write Ant files for many modules > > Hi, > I actually contribute to the development of Sandstorm, a Staged > Event-Driven Architecture (SEDA) based high-performance platform for > services http://www.eecs.harvard.edu/~mdw/proj/seda/ > > Our project source repository has been refactored, so we have > now many > modules. The modules dependencies form a acyclic graph as > well. Each > module seem well suited to have its own build.xml file. > > I would like to have your advices on Ant best practices, like: where > specify module dependencies, do we need a master build file, where > should be the output directories for compilation and jar (in > each module > or in the root directory), etc. > > If you have thoughts on these items or anything else you think is > pertinent, I'd appreciate your input. > > Thanks, > Jean > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
