org.apache.tools.ant.taskdefs
public class Nice extends Task
<nice currentPriority="current.value" >
Set currentPriority
to the current priority
<nice newPriority="10" >
Raise the priority of the build process (But not forked programs)
<nice currentPriority="old" newPriority="3" >
Lower the priority of the build process (But not forked programs), and save
the old value to the property old
.
UNKNOWN: name="nice" category="control"
Method Summary | |
---|---|
void | execute()
Execute the task |
void | setCurrentPriority(String currentPriority)
The name of a property to set to the value of the current
thread priority. |
void | setNewPriority(int newPriority)
the new priority, in the range 1-10. |
Throws: BuildException if something goes wrong with the build
Parameters: currentPriority the property name.
Parameters: newPriority the new priority value.