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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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, then
  11. set the property "build.number" to the value that was read in
  12. (or 0 if no such value). Then it will increment the build number
  13. by one and write it back out into the file.</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">file</td>
  23. <td valign="top">the file to read and write build number from.</td>
  24. <td align="center" valign="top">No, defaults to &quot;build.number&quot;</td>
  25. </tr>
  26. </table>
  27. <h3>Examples</h3>
  28. <pre> &lt;buildnumber/&gt;</pre>
  29. <p>Read, increment and write a build number to the default file &quot;build.number&quot;.</p>
  30. <pre> &lt;buildnumber file=&quot;mybuild.number&quot;/&gt;</pre>
  31. <p>Read, increment and write a build number to the file &quot;mybuild.number&quot;.</p>
  32. <hr><p align="center">Copyright &copy; 2002 Apache Software Foundation. All rights
  33. Reserved.</p>
  34. </body>
  35. </html>