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

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