java.lang.Cloneablepublic 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.
description, location, project| Constructor | Description |
|---|---|
Nice() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
execute() |
Execute the task
|
void |
setCurrentPriority(java.lang.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.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void execute()
throws BuildException
execute in class TaskBuildException - if something goes wrong with the buildpublic void setCurrentPriority(java.lang.String currentPriority)
currentPriority - the property name.public void setNewPriority(int newPriority)
newPriority - the new priority value.