You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dominique Devienne <DD...@lgc.com> on 2004/02/10 15:53:26 UTC

RE: Comment in my Ant build structure please? and

> From: Daniel Zapata [mailto:dzapata@bea.com]
> Why are you putting build.xmls in directories under /src?
> -----Original Message-----
> From: Baz ¤Ñª° [mailto:sky_fox1@yahoo.com]
> Is it such a bad design that nobody wants to comment? :((

I'm sure it's not a bad design. But everybody's situation is different
though, so it's hard to comment. All I can tell you is that I'm also biased
toward a single build.xml per project. The main reason I've written <subant>
was to deal with native library sub-builds, where the main build.xml
delegates to as many sub-builds as libraries, possibly traversing
directories to get to them. Beside this use case, all our projects have a
single build.xml.

When the project is composed of several source trees, I do invoke <javac>
several time, each time putting the classes in a different classes/ dir, and
can thus enforce correct dependencies between the source trees. Note though
that usually, the several <javac> all live in the same target. Unless your
project is quite large, this is fast enough, and is a simple design
build-script-wise.

I hope this helps. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org