ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: how many build.xml files and where should they go?
Date Mon, 07 Apr 2003 20:00:34 GMT
Yes, per sub-project if you prefer . My point was that a lot of projects
don't have sub-projects, and thus don't need more that one build.xml file.
Most Ant tasks recurse directory trees to operate just fine.

Having more than one build.xml usually is more complex to deal with than
just one I would contend, or at least requires more experience with Ant
(experience David has).

Maybe if you explained a bit more how your project is currently structured,
as well as the type of project it is (J2SE only, JSP, J2EE, etc...), could
we figure out if you do need more than one build file... --DD

-----Original Message-----
From: Tim Singletary [] 
Sent: Monday, April 07, 2003 2:53 PM
To: Ant Users List
Subject: RE: how many build.xml files and where should they go?

 > The canonical setup of an Ant build for a decent size Java project is a
 > single build.xml at the root of the project. A simple rule of thumb is
 > you should have one build file per src/ directory (containing production

I don't understand.  First 'a single build.xml', then 'one build file
per src/ directory'.  Perhaps you're suggesting that a project be
decomposed into subprojects and that each subproject should have its
own src directory and build.xml?


View raw message