source: release-kits/lirk3/resources/gs3-release-maker/apache-ant-1.6.5/docs/manual/CoreTasks/nice.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 1.6 KB
Line 
1<html>
2
3<head>
4<meta http-equiv="Content-Language" content="en-us">
5<title>Nice Task</title>
6</head>
7
8<body>
9
10<h2><a name="echo">Nice</a></h2>
11<h3>Description</h3>
12<p>Provide "nice-ness" to the current thread
13 and/or query the current value.</p>
14<h3>Parameters</h3>
15<table border="1" cellpadding="2" cellspacing="0">
16 <tr>
17 <td valign="top"><b>Attribute</b></td>
18 <td valign="top"><b>Description</b></td>
19 <td align="center" valign="top"><b>Required</b></td>
20 </tr>
21 <tr>
22 <td valign="top">currentpriority</td>
23 <td valign="top">the name of the property whose value should be
24 set to the current &quot;nice-ness&quot; level.
25 </td>
26 <td valign="top" align="center">No</td>
27 </tr>
28 <tr>
29 <td valign="top">newpriority</td>
30 <td valign="top">the value to which the
31 &quot;nice-ness&quot; level should be set.
32 Must be a valid Java Thread priority.
33 </td>
34 <td valign="top" align="center">No</td>
35 </tr>
36</table>
37<h3>Examples</h3>
38<pre> &lt;nice newpriority=&quot;10&quot;/&gt;</pre>
39Set the Thread priority to 10.
40<pre> &lt;nice currentpriority=&quot;priority&quot;/&gt;</pre>
41Store the current Thread priority in the user property "priority".
42<pre>
43 &lt;nice currentpriority=&quot;currentpriority&quot; newpriority=&quot;1&quot;/&gt;
44</pre>
45<p>Set the current Thread priority to 1, storing the original
46priority in the user property "currentpriority". This
47can be used to set the priority back to its original value later.
48</p>
49<hr>
50
51<p align="center">Copyright &copy; 2004 The Apache Software Foundation. All rights
52Reserved.</p>
53
54</body>
55</html>
56
Note: See TracBrowser for help on using the repository browser.