ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <>
Subject Re: javac compilation speed
Date Tue, 26 Jul 2005 11:59:36 GMT
Jonathan Baccash wrote:
> I have read that ant does not do dependency checking to see if targets
> are up to date.  But I have also read that compilation of java files
> is faster with ant.  How is this possible?  Does ant use javac compile
> flags to do dependency checking automatically?  Or is there something
> else going on?  Thanks,

Faster than what? Ant may be faster than other methods for a few
reasons. Ant's <javac> task determines which java source files are out
of date with respect to their classfiles and sends all of those java
files to the compiler in one operation. Ant does not send all files to
the compiler and it does not compile files one at a time. Other than
that, ant does nothing special when compiling.

Ant does not use any flags to do dependency checking. I think these
options are actually no longer part of javac and never really worked in
the way you'd actually want in any case.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message