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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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">ChangeLog</a></h2>
  8. <h3>Description</h3>
  9. <p>Generates an XML-formatted report file of the change logs recorded
  10. in a <a href="http://subversion.tigris.org/"
  11. target="_top">Subversion</a> repository. </p>
  12. <p><b>Important:</b> This task needs "svn" on the path. If it isn't,
  13. you will get an error (such as error 2 on windows). If
  14. <code>&lt;svn&gt;</code> doesn't work, try to execute svn.exe from the
  15. command line in the target directory in which you are working.</p>
  16. <h3>Parameters</h3>
  17. <table border="1" cellpadding="2" cellspacing="0">
  18. <tr>
  19. <td valign="top"><b>Attribute</b></td>
  20. <td valign="top"><b>Description</b></td>
  21. <td align="center" valign="top"><b>Required</b></td>
  22. </tr>
  23. <tr>
  24. <td colspan="3">Attributes from parent <a href="svn.html">svn
  25. task</a> which are meaningful here<br/>
  26. </tr>
  27. <tr>
  28. <td valign="top">svnURL</td>
  29. <td valign="top">the URL the subcommand should apply to.</td>
  30. <td align="center" valign="top">No</td>
  31. </tr>
  32. <tr>
  33. <td valign="top">dest</td>
  34. <td valign="top">the directory where the checked out files are.</td>
  35. <td align="center" valign="top">No, default is project's basedir.</td>
  36. </tr>
  37. <tr>
  38. <td valign="top">failonerror</td>
  39. <td valign="top">Stop the build process if the command exits with a
  40. return code other than <code>0</code>. Defaults to false</td>
  41. <td align="center" valign="top">No</td>
  42. </tr>
  43. <tr>
  44. <td colspan="3">Specific attributes</td>
  45. </tr>
  46. <tr>
  47. <td valign="top">dir</td>
  48. <td valign="top">The directory from which to run the CVS <em>log</em>
  49. command.</td>
  50. <td align="center" valign="top">No; defaults to ${basedir}.</td>
  51. </tr>
  52. <tr>
  53. <td valign="top">destfile</td>
  54. <td valign="top">The file in which to write the change log report.</td>
  55. <td align="center" valign="top">Yes</td>
  56. </tr>
  57. <tr>
  58. <td valign="top">usersfile</td>
  59. <td valign="top">Property file that contains name-value pairs mapping
  60. user IDs and names that should be used in the report in place of
  61. the user ID.</td>
  62. <td align="center" valign="top">No</td>
  63. </tr>
  64. <tr>
  65. <td valign="top">daysinpast</td>
  66. <td valign="top">Sets the number of days into the past for which the
  67. change log information should be retrieved.</td>
  68. <td align="center" valign="top">No</td>
  69. </tr>
  70. <tr>
  71. <td valign="top">start</td>
  72. <td valign="top">The earliest revision/date from which change logs
  73. are to be included in the report.</td>
  74. <td align="center" valign="top">No</td>
  75. </tr>
  76. <tr>
  77. <td valign="top">end</td>
  78. <td valign="top">The latest revision/date to which change logs are to be
  79. included in the report.</td>
  80. <td align="center" valign="top">No</td>
  81. </tr>
  82. </table>
  83. <h3>Parameters specified as nested elements</h3>
  84. <h4><a name="user">user</a></h4>
  85. <p>The nested <code>&lt;user&gt;</code> element allows you to specify
  86. a mapping between a user ID as it appears on the Subversion server and
  87. a name to include in the formatted report. Anytime the specified user
  88. ID has made a change in the repository, the
  89. <code>&lt;author&gt;</code> tag in the report file will include the
  90. name specified in <code>displayname</code> rather than the user
  91. ID.</p>
  92. <table border="1" cellpadding="2" cellspacing="0">
  93. <tr>
  94. <td valign="top"><b>Attribute</b></td>
  95. <td valign="top"><b>Description</b></td>
  96. <td align="center" valign="top"><b>Required</b></td>
  97. </tr>
  98. <tr>
  99. <td valign="top">displayname</td>
  100. <td valign="top">The name to be used in the Subversion change log
  101. report.</td>
  102. <td valign="top" align="center">Yes</td>
  103. </tr>
  104. <tr>
  105. <td valign="top">userid</td>
  106. <td valign="top">The userid of the person as it exists on the
  107. Subversion server.
  108. </td>
  109. <td valign="top" align="center">Yes</td>
  110. </tr>
  111. </table>
  112. <h3>Examples</h3>
  113. <pre> &lt;changelog dir=&quot;dve/network&quot;
  114. destfile=&quot;changelog.xml&quot;
  115. /&gt;</pre>
  116. <p>Generates a change log report for all the changes that have been made
  117. under the <code>dve/network</code> directory.
  118. It writes these changes into the file <code>changelog.xml</code>.</p>
  119. <pre> &lt;changelog dir=&quot;dve/network&quot;
  120. destfile=&quot;changelog.xml&quot;
  121. daysinpast=&quot;10&quot;
  122. /&gt;</pre>
  123. <p>Generates a change log report for any changes that were made
  124. under the <code>dve/network</code> directory in the past 10 days.
  125. It writes these changes into the file <code>changelog.xml</code>.</p>
  126. <pre> &lt;changelog dir=&quot;dve/network&quot;
  127. destfile=&quot;changelog.xml&quot;
  128. start=&quot;{2002-02-20}&quot;
  129. end=&quot;{2002-03-20}&quot;
  130. /&gt;</pre>
  131. <p>Generates a change log report for any changes that were made
  132. between February 20, 2002 and March 20, 2002
  133. under the <code>dve/network</code> directory.
  134. It writes these changes into the file <code>changelog.xml</code>.</p>
  135. <pre> &lt;changelog dir=&quot;dve/network&quot;
  136. destfile=&quot;changelog.xml&quot;
  137. start=&quot;{2002-02-20}&quot;
  138. /&gt;</pre>
  139. <p>Generates a change log report for any changes that were made
  140. after February 20, 2002 under the <code>dve/network</code> directory.
  141. It writes these changes into the file <code>changelog.xml</code>.</p>
  142. <pre> &lt;changelog dir=&quot;dve/network&quot;
  143. destfile=&quot;changelog.xml&quot;
  144. start=&quot;1000&quot;
  145. end=&quot;1500&quot;
  146. /&gt;</pre>
  147. <p>Generates a change log report for any changes that were made
  148. between Subversion revisions 1000 and 1500 under the
  149. <code>dve/network</code> directory. It writes these changes into the
  150. file <code>changelog.xml</code>.</p>
  151. <pre> &lt;changelog dir=&quot;dve/network&quot;
  152. destfile=&quot;changelog.xml&quot;&gt;
  153. &lt;user displayname=&quot;Esmerelda Weatherwax&quot; userid=&quot;granny&quot;/&gt;
  154. &lt;/changelog&gt;</pre>
  155. <p>Generates a change log report for all the changes that were made
  156. under the <code>dve/network</code> directory, substituting the name
  157. &quot;Esmerelda Weatherwax&quot; in the <code>&lt;author&gt;</code> tags
  158. anytime it encounters a change made by the user ID &quot;granny&quot;.
  159. It writes these changes into the file <code>changelog.xml</code>.</p>
  160. <h4>Generate Report</h4>
  161. <p>This antlib includes a basic XSLT stylesheet that you can use to
  162. generate a HTML report based on the xml output. The following example
  163. illustrates how to generate a HTML report from the XML report.</p>
  164. <pre>
  165. &lt;style in="changelog.xml"
  166. out="changelog.html"
  167. style="your-path-to/etc/changelog.xsl"&gt;
  168. &lt;param name="title" expression="Jakarta BCEL ChangeLog"/&gt;
  169. &lt;param name="repo" expression="http://svn.apache.org/repos/asf"/&gt;
  170. &lt;/style&gt;
  171. </pre>
  172. <h4>Sample Output</h4>
  173. <pre>
  174. &lt;entry&gt;
  175. &lt;date&gt;2005-02-14&lt;/date&gt;
  176. &lt;time&gt;01:55&lt;/time&gt;
  177. &lt;author&gt;&lt;![CDATA[dbrosius]]&gt;&lt;/author&gt;
  178. &lt;revision&gt;153687&lt;/revision&gt;
  179. &lt;path&gt;
  180. &lt;name&gt;&lt;![CDATA[/jakarta/bcel/trunk/src/java/org/apache/bcel/util/BCELifier.java]]&gt;&lt;/name&gt;
  181. &lt;action&gt;modified&lt;/action&gt;
  182. &lt;/path&gt;
  183. &lt;message&gt;&lt;![CDATA[Update BCELifier to handle the new method access flags (ACC_BRIDGE, ACC_VARARGS)]]&gt;&lt;/message&gt;
  184. &lt;/entry&gt;
  185. </pre>
  186. <hr><p align="center">Copyright &copy; 2005 The Apache Software Foundation. All rights
  187. Reserved.</p>
  188. </body>
  189. </html>