You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

sleep.html 2.3 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <html>
  2. <head>
  3. <title>Sleep Task</title>
  4. </head>
  5. <body>
  6. <h2><a name="sleep">Sleep</a></h2>
  7. <h3>Description</h3>
  8. <p> A task for sleeping a short period of time, useful when a build or deployment
  9. process requires an interval between tasks.</p>
  10. <h3>Parameters</h3>
  11. <table border="1" cellpadding="2" cellspacing="0">
  12. <tr>
  13. <td valign="top"><b>Attribute</b></td>
  14. <td valign="top"><b>Description</b></td>
  15. <td align="center" valign="top"><b>Required</b></td>
  16. </tr>
  17. <tr>
  18. <td valign="top">hours</td>
  19. <td valign="top">hours to to add to the sleep time</td>
  20. <td valign="top" align="center">No</td>
  21. </tr>
  22. <tr>
  23. <td valign="top">minutes</td>
  24. <td valign="top"> minutes to add to the sleep time</td>
  25. <td valign="top" align="center">No</td>
  26. </tr>
  27. <tr>
  28. <td valign="top">seconds</td>
  29. <td valign="top">seconds to add to the sleep time</td>
  30. <td align="center" valign="top">No</td>
  31. </tr>
  32. <tr>
  33. <td valign="top">milliseconds</td>
  34. <td valign="top">milliseconds to add to the sleep time</td>
  35. <td align="center" valign="top">No</td>
  36. </tr>
  37. <tr>
  38. <td valign="top">failonerror</td>
  39. <td valign="top">flag controlling whether to break the build on an error.
  40. </td>
  41. <td align="center" valign="top">No</td>
  42. </tr>
  43. </table>
  44. <p>The sleep time is the sum of specified values, hours, minutes seconds and milliseconds.
  45. A negative value can be supplied to any of them provided the total sleep time
  46. is positive</p>
  47. <p>Note that sleep times are always hints to be interpred by the OS how it feels
  48. - small times may either be ignored or rounded up to a minimum timeslice. Note
  49. also that the system clocks often have a fairly low granularity too, which complicates
  50. measuring how long a sleep actually took.</p>
  51. <h3>Examples</h3>
  52. <pre> &lt;sleep milliseconds=&quot;10&quot;/&gt;</pre>
  53. Sleep for about 10 mS.
  54. <pre> &lt;sleep seconds=&quot;2&quot;/&gt;</pre>
  55. Sleep for about 2 seconds.
  56. <pre> &lt;sleep hours=&quot;1&quot; minutes=&quot;-59&quot; seconds=&quot;-58&quot;/&gt;</pre>
  57. <p>Sleep for one hour less 59:58, or two seconds again </p>
  58. <pre> &lt;sleep/&gt;</pre>
  59. Sleep for no time at all. This may yield the CPU time to another thread or process.
  60. <hr>
  61. <p align="center">Copyright &copy; 2001-2002,2004 The Apache Software Foundation. All rights
  62. Reserved.</p>
  63. </body>
  64. </html>