> From: Dennis Brake [mailto:[EMAIL PROTECTED]]
>
> Yes. If you only change one class, only that class and classes that
> use it will be recompiled.


Dennis, this is not strictly correct. Ant will only compile classes whose
source file has changed. Classes that use it will not be recompiled unless
the compiler supports such dependency management. To augment those compilers
that do not support full dependency management, I developed a task, <depend>
that will remove the class files of those classes which depend on an out of
date class. This will trigger the recompilation. Using this task would
increase you build times a little.


> Another advantage over make is speed. Ant builds a set of all files
> that have changed (timestamp comparison) and feeds them into the
> javac task. Using make, the Makefile would traverse the directories
> and start a new javac process each time. For example, using make
> it took us over 6 minutes to rebuild our project. Using ant this took
> 24 seconds. Then doing a second build (nothing to do) make took
> 15 seconds and ant took 3 seconds.
>
> Dennis
>
>

Reply via email to