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.

changelog.html 6.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>ChangeLog Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="changelog">CvsChangeLog</a></h2>
  8. <h3>Description</h3>
  9. <p>Generates an XML-formatted report file of the change logs recorded in a
  10. <a href="http://www.cvshome.org/" target="_top">CVS</a> repository. </p>
  11. <p><b>Important:</b> This task needs "cvs" on the path. If it isn't, you will get
  12. an error (such as error 2 on windows). If &lt;cvs&gt; doesn't work, try to execute cvs.exe
  13. from the command line in the target directory in which you are working.
  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">dir</td>
  23. <td valign="top">The directory from which to run the CVS <em>log</em>
  24. command.</td>
  25. <td align="center" valign="top">No; defaults to ${basedir}.</td>
  26. </tr>
  27. <tr>
  28. <td valign="top">destfile</td>
  29. <td valign="top">The file in which to write the change log report.</td>
  30. <td align="center" valign="top">Yes</td>
  31. </tr>
  32. <tr>
  33. <td valign="top">usersfile</td>
  34. <td valign="top">Property file that contains name-value pairs mapping
  35. user IDs and names that should be used in the report in place of
  36. the user ID.</td>
  37. <td align="center" valign="top">No</td>
  38. </tr>
  39. <tr>
  40. <td valign="top">daysinpast</td>
  41. <td valign="top">Sets the number of days into the past for which the
  42. change log information should be retrieved.</td>
  43. <td align="center" valign="top">No</td>
  44. </tr>
  45. <tr>
  46. <td valign="top">start</td>
  47. <td valign="top">The earliest date from which change logs are to be
  48. included in the report.</td>
  49. <td align="center" valign="top">No</td>
  50. </tr>
  51. <tr>
  52. <td valign="top">end</td>
  53. <td valign="top">The latest date to which change logs are to be
  54. included in the report.</td>
  55. <td align="center" valign="top">No</td>
  56. </tr>
  57. </table>
  58. <h3>Parameters specified as nested elements</h3>
  59. <h4><a name="user">user</a></h4>
  60. <p>The nested <code>&lt;user&gt;</code> element allows you to specify a
  61. mapping between a user ID as it appears on the CVS server and a name to
  62. include in the formatted report.
  63. Anytime the specified user ID has made a change in the repository, the
  64. <code>&lt;author&gt;</code> tag in the report file will include
  65. the name specified in <code>displayname</code> rather than the user ID.
  66. </p>
  67. <table border="1" cellpadding="2" cellspacing="0">
  68. <tr>
  69. <td valign="top"><b>Attribute</b></td>
  70. <td valign="top"><b>Description</b></td>
  71. <td align="center" valign="top"><b>Required</b></td>
  72. </tr>
  73. <tr>
  74. <td valign="top">displayname</td>
  75. <td valign="top">The name to be used in the CVS change log report.</td>
  76. <td valign="top" align="center">Yes</td>
  77. </tr>
  78. <tr>
  79. <td valign="top">userid</td>
  80. <td valign="top">The userid of the person as it exists on the CVS server.
  81. </td>
  82. <td valign="top" align="center">Yes</td>
  83. </tr>
  84. </table>
  85. <h3>Examples</h3>
  86. <pre> &lt;cvschangelog dir=&quot;dve/network&quot;
  87. destfile=&quot;changelog.xml&quot;
  88. /&gt;</pre>
  89. <p>Generates a change log report for all the changes that have been made
  90. under the <code>dve/network</code> directory.
  91. It writes these changes into the file <code>changelog.xml</code>.</p>
  92. <pre> &lt;cvschangelog dir=&quot;dve/network&quot;
  93. destfile=&quot;changelog.xml&quot;
  94. daysinpast=&quot;10&quot;
  95. /&gt;</pre>
  96. <p>Generates a change log report for any changes that were made
  97. under the <code>dve/network</code> directory in the past 10 days.
  98. It writes these changes into the file <code>changelog.xml</code>.</p>
  99. <pre> &lt;cvschangelog dir=&quot;dve/network&quot;
  100. destfile=&quot;changelog.xml&quot;
  101. start=&quot;20 Feb 2002&quot;
  102. end=&quot;20 Mar 2002&quot;
  103. /&gt;</pre>
  104. <p>Generates a change log report for any changes that were made
  105. between February 20, 2002 and March 20, 2002
  106. under the <code>dve/network</code> directory.
  107. It writes these changes into the file <code>changelog.xml</code>.</p>
  108. <pre> &lt;cvschangelog dir=&quot;dve/network&quot;
  109. destfile=&quot;changelog.xml&quot;
  110. start=&quot;20 Feb 2002&quot;
  111. /&gt;</pre>
  112. <p>Generates a change log report for any changes that were made
  113. after February 20, 2002 under the <code>dve/network</code> directory.
  114. It writes these changes into the file <code>changelog.xml</code>.</p>
  115. <pre> &lt;cvschangelog dir=&quot;dve/network&quot;
  116. destfile=&quot;changelog.xml&quot;&gt;
  117. &lt;user displayname=&quot;Peter Donald&quot; userid=&quot;donaldp&quot;/&gt;
  118. &lt;/cvschangelog&gt;</pre>
  119. <p>Generates a change log report for all the changes that were made
  120. under the <code>dve/network</code> directory, substituting the name
  121. &quot;Peter Donald&quot; in the <code>&lt;author&gt;</code> tags
  122. anytime it encounters a change made by the user ID &quot;donaldp&quot;.
  123. It writes these changes into the file <code>changelog.xml</code>.</p>
  124. <h4>Generate Report</h4>
  125. <p>Ant includes a basic XSLT stylesheet that you can use to generate
  126. a HTML report based on the xml output. The following example illustrates
  127. how to generate a HTML report from the XML report.</p>
  128. <pre>
  129. &lt;style in="changelog.xml"
  130. out="changelog.html"
  131. style="${ant.home}/etc/changelog.xsl"&gt;
  132. &lt;param name="title" expression="Ant ChangeLog"/&gt;
  133. &lt;param name="module" expression="ant"/&gt;
  134. &lt;param name="cvsweb" expression="http://cvs.apache.org/viewcvs/"/&gt;
  135. &lt;/style&gt;
  136. </pre>
  137. <h4>Sample Output</h4>
  138. <pre>
  139. &lt;changelog&gt;
  140. &lt;entry&gt;
  141. &lt;date&gt;2002-03-06&lt;/date&gt;
  142. &lt;time&gt;12:00&lt;/time&gt;
  143. &lt;author&gt;Peter Donald&lt;/author&gt;
  144. &lt;file&gt;
  145. &lt;name&gt;org/apache/myrmidon/build/AntlibDescriptorTask.java&lt;/name&gt;
  146. &lt;revision&gt;1.3&lt;/revision&gt;
  147. &lt;prevrevision&gt;1.2&lt;/prevrevision&gt;
  148. &lt;/file&gt;
  149. &lt;msg&gt;&lt;![CDATA[Use URLs directly rather than go via a FIle.
  150. This allows temp[lates to be stored inside jar]]&gt;&lt;/msg&gt;
  151. &lt;/entry&gt;
  152. &lt;/changelog&gt;
  153. </pre>
  154. <hr><p align="center">Copyright &copy; 2002-2003 Apache Software Foundation. All rights
  155. Reserved.</p>
  156. </body>
  157. </html>