On 21 Mar 2002, Jason van Zyl <[EMAIL PROTECTED]> wrote:

> I assume that ant is not made to take advantage of a multi-processor
> box,

Ant isn't doing too many things that could take advantage of multiple
processors - it doesn't compile itself but uses your JDK's javac (you
know that 8-) which won't take advantage of multiple processors for
example.

If there are things in your build process that can be done in
parallel, you can use Ant's <parallel> task (Ant >= 1.4) and run them
in parallel.  This should take advantage of multiple processors if
your JVM uses native threads.

If you put <javac> inside <parallel>, make sure you fork new processes
though as Sun's javac code doesn't seem to be thread-safe.

Stefan

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to