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
.
Constructor and Description |
---|
Nice() |
Modifier and Type | Method and Description |
---|---|
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.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public void execute() throws BuildException
execute
in class Task
BuildException
- if something goes wrong with the buildpublic void setCurrentPriority(String currentPriority)
currentPriority
- the property name.public void setNewPriority(int newPriority)
newPriority
- the new priority value.