(1) Because it's *a lot* harder than serialized task processing
(2) Assuming that the antfile writers have written the tasks properly with
good dependency layout is a tall order.
I'm in no way saying this wouldn't be good or can't be done. Make even
attempts to solve this; it has everything going for it: well defined
dependency checking, well defined build language and shell and OS
support....and it doesn't do it well.
If average builds took 5-12 hours and the average dependencies within a java
project were well segregated *and* the threading code needed by Ant would
take a week to write, then *maybe* you'd see this.
Inertia's a bitch.
JT
-----Original Message-----
From: Scott Ganyo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 2:28 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Multiple processors
Yes, but if you've correctly specified your Ant Tasks, why not allow Ant to
do each task in a separate thread and just manage the explicit dependencies
between them?
Scott
> -----Original Message-----
> From: Jesse Tilly [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 03, 2001 1:15 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Multiple processors
>
>
> Ant will not thread out tasks if that's what you're asking.
> Javac does not
> thread out compilation. For the most part, unless it's
> understood from the
> builder's point of view, multi-threading built projects is of no use.
> Source and libraries have many dependencies that only the desginer
> understands.
>
> For example:
>
> Let's say I build three things, lib1, lib2 and project1. lib1
> and lib2 are
> independent and could be built simultaneously. project1
> depends on lib1 and
> lib2. While it's possible to parse all the code to find the
> dependencies
> and make the decision there, it would probably be faster to
> just serialize
> the building of lib1, lib2 and project1. The implementation would be
> easier, definitely.
>
> Anyway, that's probably more than you wanted but I thought
> you'd like to
> know why Ant doesn't thread stuff out for you.
>
> Jesse
>
> -----Original Message-----
> From: pdw [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 03, 2001 1:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Multiple processors
>
>
> is your JVM using native threads or green threads? make sure
> you're using
> native threads, use:
>
> java -version
>
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 03, 2001 10:12 AM
> Subject: Multiple processors
>
>
> > My build box has four processors, but when I run an ant
> build only 25%,
> one
> > prossesor is being used. It is a Windows NT box. Is ant
> multi threaded,
> > will it take advantage of multiple processors?
> >
> > Thanks - Scott
> >
> >
> >
>