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.

revisiondiff.html 4.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>RevisionDiff Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="revisiondiff">RevisionDiff</a></h2>
  8. <h3>Description</h3>
  9. <p>Generates an XML-formatted report file of the changes between two
  10. revisions recorded 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
  15. <code>svn.exe</code> from the command line in the target directory in
  16. which you are working.</p>
  17. <h3>Parameters</h3>
  18. <table border="1" cellpadding="2" cellspacing="0">
  19. <tr>
  20. <td valign="top"><b>Attribute</b></td>
  21. <td valign="top"><b>Description</b></td>
  22. <td align="center" valign="top"><b>Required</b></td>
  23. </tr>
  24. <tr>
  25. <td valign="top">start</td>
  26. <td valign="top">The earliest revision from which diffs are to be
  27. included in the report.</td>
  28. <td align="center" valign="top">Yes.</td>
  29. </tr>
  30. <tr>
  31. <td valign="top">end</td>
  32. <td valign="top">The latest revision from which diffs are to be
  33. included in the report.</td>
  34. <td align="center" valign="top">Yes.</td>
  35. </tr>
  36. <tr>
  37. <td valign="top">destfile</td>
  38. <td valign="top">The file in which to write the diff report.</td>
  39. <td align="center" valign="top">Yes</td>
  40. </tr>
  41. </table>
  42. <h3>Parameters inherited from the <code>svn</code> task</h3>
  43. <table border="1" cellpadding="2" cellspacing="0">
  44. <tr>
  45. <td valign="top"><b>Attribute</b></td>
  46. <td valign="top"><b>Description</b></td>
  47. <td align="center" valign="top"><b>Required</b></td>
  48. </tr>
  49. <tr>
  50. <td valign="top">svnURL</td>
  51. <td valign="top">the svn URL to diff.</td>
  52. <td align="center" valign="top">No</td>
  53. </tr>
  54. <tr>
  55. <td valign="top">failonerror</td>
  56. <td valign="top">Stop the buildprocess if the command exits with a
  57. returncode other than 0. Defaults to false</td>
  58. <td align="center" valign="top">No</td>
  59. </tr>
  60. </table>
  61. <h3>Examples</h3>
  62. <pre> &lt;revisiondiff
  63. svnURL=&quot;http://svn.apache.org/repos/asf/jakarta/bcel/trunk&quot;
  64. destfile=&quot;diff.xml&quot;
  65. start=&quot;152904&quot;
  66. end=&quot;153682&quot;
  67. /&gt;</pre>
  68. <p>Generates a revisiondiff report for all the changes that have been
  69. made in the <code>Apache BCEL</code> module between the revisions
  70. <code>152904</code> and <code>153682</code>. It writes these changes
  71. into the file <code>diff.xml</code>.</p>
  72. <pre> &lt;revisiondiff
  73. destfile=&quot;diff.xml&quot;
  74. package=&quot;ant&quot;
  75. start=&quot;{2002-01-01}&quot;
  76. end=&quot;{2002-02-01}&quot;
  77. dest=&quot;my-working-copy-of-BCEL&quot;
  78. /&gt;</pre>
  79. <p>Generates a diff report for all the changes that have been made in
  80. the <code>Apache BCEL</code> module in january 2002. In this example
  81. <code>svnURL</code> has not been set, it is assumed that
  82. <code>my-working-copy-of-BCEL</code> contains a checked out copy of
  83. the BCEL module. It writes these changes into the file
  84. <code>diff.xml</code>.</p>
  85. <h4>Generate Report</h4>
  86. <p>This antlib includes a basic XSLT stylesheet that you can use to
  87. generate a HTML report based on the xml output. The following example
  88. illustrates how to generate a HTML report from the XML report.</p>
  89. <pre>
  90. &lt;style in="diff.xml"
  91. out="diff.html"
  92. style="your-path-to/etc/diff.xsl"&gt;
  93. &lt;param name="title" expression="Jakarta BCEL diff"/&gt;
  94. &lt;param name="repo" expression="http://svn.apache.org/repos/asf/jakarta/bcel/trunk"/&gt;
  95. &lt;/style&gt;
  96. </pre>
  97. <h4>(Shortened) Example Output</h4>
  98. <pre>
  99. &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  100. &lt;revisiondiff start="153872" end="152873" svnurl="http://svn.apache.org/repos/asf/jakarta/bcel/trunk" &gt;
  101. &lt;path&gt;
  102. &lt;name&gt;&lt;![CDATA[LICENSE.txt]]&gt;&lt;/name&gt;
  103. &lt;action&gt;modified&lt;/action&gt;
  104. &lt;/path&gt;
  105. &lt;path&gt;
  106. &lt;name&gt;&lt;![CDATA[NOTICE.txt]]&gt;&lt;/name&gt;
  107. &lt;action&gt;deleted&lt;/action&gt;
  108. &lt;/path&gt;
  109. &lt;/revisiondiff&gt;
  110. </pre>
  111. <hr><p align="center">Copyright &copy; 2005 The Apache Software Foundation. All rights
  112. Reserved.</p>
  113. </body>
  114. </html>