Edwin Goei wrote:

> Sorry, for not thinking and sending out mail too early, please disregard 
> the ugly hack idea.  I believe the solution would be to use a command 
> like the following (psuedocode):
> 
> % javac -sourcepath src -d build/classes src/**/*.java
> 
> That is, list all source files on the command line.  This will force 
> javac to compile *all* source files.  Ant makes this easy.  I haven't 
> tried it yet though, since it's getting late and I have to leave the 
> office.  Let me know if this does not work.

Well, I just looked at the xalan (classic) build.xml file and it 
essentially does this.  The "compile" target has three separate javac 
compiles, but it also prepends the "destdir" to the normal bootclasspath 
so it is successful.  Since it is split into three batches, the ordering 
of each javac batch is important.  I tested this with JDK 1.4.0.

It would be simpler to use a single batch, but the comment says this was 
done as a workaround for a JDK 1.1.8 bug, which may no longer be 
important to support.

-Edwin

Reply via email to