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

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