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.

buildnumber.html 1.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>BuildNumber Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="buildnumber">BuildNumber</a></h2>
  8. <h3>Description</h3>
  9. <p>This is a basic task that can be used to track build numbers.</p>
  10. <p>It will first attempt to read a build number from a file (by default,
  11. <code>build.number</code> in the current directory), then
  12. set the property <code>build.number</code> to the value that was read in
  13. (or to <code>0</code>, if no such value). It will then increment the
  14. number by one and write it back out to the file.
  15. (See the
  16. <a href="../OptionalTasks/propertyfile.html">PropertyFile</a> task
  17. if you need finer control over things such as the property name or
  18. the number format.)
  19. </p>
  20. <h3>Parameters</h3>
  21. <table border="1" cellpadding="2" cellspacing="0">
  22. <tr>
  23. <td valign="top"><b>Attribute</b></td>
  24. <td valign="top"><b>Description</b></td>
  25. <td align="center" valign="top"><b>Required</b></td>
  26. </tr>
  27. <tr>
  28. <td valign="top">file</td>
  29. <td valign="top">The file to read and write the build number from/to.</td>
  30. <td align="center" valign="top">No; defaults to &quot;build.number&quot;</td>
  31. </tr>
  32. </table>
  33. <h3>Examples</h3>
  34. <pre> &lt;buildnumber/&gt;</pre>
  35. <p>Read, increment, and write a build number to the default file,
  36. <code>build.number</code>.</p>
  37. <pre> &lt;buildnumber file=&quot;mybuild.number&quot;/&gt;</pre>
  38. <p>Read, increment, and write a build number to the file
  39. <code>mybuild.number</code>.</p>
  40. <hr><p align="center">Copyright &copy; 2002 Apache Software Foundation.
  41. All rights Reserved.</p>
  42. </body>
  43. </html>