>>>>> "Travis" == Travis Shirk <[EMAIL PROTECTED]> writes:
> (CVS, sources vs. binaries, Make, javac)
> Has anyone ever solved this problem.  This is the first time I've really
> wished for header files, because C/C++ does not have this problem during
> compile time.

Sure it does, just different and (in practice) simpler because of the
flattened namespace.

We've stopped using make, mostly because we need to be able to build
on multiple OSes and to DOS-derived camp claims they cannot understand 
makefiles.  Admittedly, makefiles that work on DOS and *nix are not
always the prettiest things.

So - our current approach is to:
 1. Have our source tree mirror the class structure exactly.  $SRC
 2. All class files go into a tree outside the source tree. $BIN

our compiles look something like:
        javac -d $BIN -classpath ${SRC}:$CLASSPATH $files

Turns out that javac can find and compile java sources on demand if
the desired sources are either (A) in the classpath or (B) in the
javac command line (This seems to work with Jikes, also).

This is still pretty hairy when you've got a sufficiently complex
system - we've written a custom system builder (in java, of course)
that handles our compile.

Cheers,
        -mik
-- 
Michael Thome ([EMAIL PROTECTED])

Reply via email to