ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject Re: cvs commit: ant/docs/manual running.html
Date Fri, 03 Oct 2003 02:06:47 GMT
On Fri, 3 Oct 2003 11:40 am, stevel@apache.org wrote:
> stevel      2003/10/02 18:40:48
>
>   Modified:    src/main/org/apache/tools/ant Main.java
>                docs/manual running.html
>   Log:
>   This is the first visible divergence ofAnt1.7 from 1.6...ant 1.7 has a
> -nice option that lets you lessen or increase the priority of the main
> thread. Useful for background builds, though since it doesnt propagate into
> forked code, not as useful as it could be.
>

Might also be a useful concept for <parallel> to specify a thread priority.

  +                if(threadPriority.intValue()<Thread.MIN_PRIORITY ||
  +                        threadPriority.intValue()>Thread.MAX_PRIORITY) {
  +                    throw new BuildException(
  +                            "Niceness value is out of the range 1-10");
  +                }

You probably should use the constants in the error message too :-).

Conor


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message