From be5097ce7270fb360fad98e451ebebcc4354c8ef Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Fri, 12 Mar 2004 15:11:35 +0000 Subject: [PATCH] Add to the manual. PR: 26637 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276229 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/nice.html | 56 +++++++++++++++++++++++++++++++++ docs/manual/coretasklist.html | 3 +- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 docs/manual/CoreTasks/nice.html diff --git a/docs/manual/CoreTasks/nice.html b/docs/manual/CoreTasks/nice.html new file mode 100644 index 000000000..b4df03821 --- /dev/null +++ b/docs/manual/CoreTasks/nice.html @@ -0,0 +1,56 @@ + + + + +Nice Task + + + + +

Nice

+

Description

+

Provide "nice-ness" to the current thread + and/or query the current value.

+

Parameters

+ + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
currentprioritythe name of the property whose value should be + set to the current "nice-ness" level. + No
newprioritythe value to which the + "nice-ness" level should be set. + Must be a valid Java Thread priority. + No
+

Examples

+
   <nice newpriority="10" />
+Set the Thread priority to 10. +
   <nice currentpriority="priority" />
+Store the current Thread priority in the user property "priority". +
+   <nice currentpriority="currentpriority" newpriority="1" />
+
+

Set the current Thread priority to 1, storing the original +priority in the user property "currentpriority". This +can be used to set the priority back to its original value later. +

+
+ +

Copyright © 2004 The Apache Software Foundation. All rights +Reserved.

+ + + + diff --git a/docs/manual/coretasklist.html b/docs/manual/coretasklist.html index 098813bf1..1850929ad 100644 --- a/docs/manual/coretasklist.html +++ b/docs/manual/coretasklist.html @@ -65,6 +65,7 @@ Manifest
Mkdir
Move
+Nice
Parallel
Patch
PathConvert
@@ -99,4 +100,4 @@ Xslt
Zip
- \ No newline at end of file +