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.4 KiB

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