On Fri, 22 Mar 2002, Geir Magnusson Jr. wrote:
> On 3/22/02 2:59 AM, "Stefan Bodewig" <[EMAIL PROTECTED]> wrote: > > > 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. > > Woo hoo! This is exactly what I was going to do to ant - I have a dual proc > mac, and wanted my builds to go even faster... Cannot ant (like normal decent pmake/bsdmake) figure out from the dependencies what can be done in parallel. I am not asking for the awsomeness of 'make -j 8 world' of *BSD - butsomething close should be possible I take it - could be a nice graduade student project :-) DW -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>