On Fri, 3 Oct 2003 11:40 am, [EMAIL PROTECTED] 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"); + }
No, I have a <nice> task ready to go in there
You probably should use the constants in the error message too :-).
I could even share code; put a static doNice() routine in task.Nice, but wanted better decoupling.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]