| <html> |
| <head> |
| <meta http-equiv="Content-Language" content="en-us"> |
| <title>CvsTagDiff Task</title> |
| <link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css"> |
| </head> |
| <body> |
| <h2><a name="cvstagdiff">CvsTagDiff</a></h2> |
| <h3>Description</h3> |
| <p>Generates an XML-formatted report file of the changes between two tags or dates recorded in a |
| <a href="http://www.cvshome.org/" target="_top">CVS</a> repository. </p> |
| <p><b>Important:</b> This task needs "cvs" on the path. If it isn't, you will get |
| an error (such as error 2 on windows). If <cvs> doesn't work, try to execute cvs.exe |
| from the command line in the target directory in which you are working. |
| <h3>Parameters</h3> |
| <table border="1" cellpadding="2" cellspacing="0"> |
| <tr> |
| <td valign="top"><b>Attribute</b></td> |
| <td valign="top"><b>Description</b></td> |
| <td align="center" valign="top"><b>Required</b></td> |
| </tr> |
| <tr> |
| <td valign="top">startTag</td> |
| <td valign="top">The earliest tag from which diffs are to be |
| included in the report.</td> |
| <td align="center" valign="top" rowspan="2">exactly one of the two.</td> |
| </tr> |
| <tr> |
| <td valign="top">startDate</td> |
| <td valign="top">The earliest date from which diffs are to be |
| included in the report.<br/> |
| accepts all formats accepted by the cvs command for -D date_spec arguments</td> |
| </tr> |
| <tr> |
| <td valign="top">endTag</td> |
| <td valign="top">The latest tag from which diffs are to be |
| included in the report.</td> |
| <td align="center" valign="top" rowspan="2">exactly one of the two.</td> |
| </tr> |
| <tr> |
| <td valign="top">endDate</td> |
| <td valign="top">The latest date from which diffs are to be |
| included in the report.<br/> |
| accepts all formats accepted by the cvs command for -D date_spec arguments</td> |
| </tr> |
| <tr> |
| <td valign="top">destfile</td> |
| <td valign="top">The file in which to write the diff report.</td> |
| <td align="center" valign="top">Yes</td> |
| </tr> |
| </table> |
| |
| <h3>Parameters inherited from the <code>cvs</code> task</h3> |
| <table border="1" cellpadding="2" cellspacing="0"> |
| <tr> |
| <td valign="top"><b>Attribute</b></td> |
| <td valign="top"><b>Description</b></td> |
| <td align="center" valign="top"><b>Required</b></td> |
| </tr> |
| <tr> |
| <td valign="top">compression</td> |
| <td valign="top"><code>true</code>, <code>false</code>, or the number 1-9 (corresponding to possible values for CVS <code>-z#</code> argument). Any other value is treated as false</td> |
| <td align="center" valign="top">No. Defaults to no compression. if passed <code>true</code>, level 3 compression is assumed.</td> |
| </tr> |
| <tr> |
| <td valign="top">cvsRoot</td> |
| <td valign="top">the CVSROOT variable.</td> |
| <td align="center" valign="top">No</td> |
| </tr> |
| <tr> |
| <td valign="top">cvsRsh</td> |
| <td valign="top">the CVS_RSH variable.</td> |
| <td align="center" valign="top">No</td> |
| </tr> |
| <tr> |
| <td valign="top">package</td> |
| <td valign="top">the package/module to analyze.<br> |
| Since ant 1.6 |
| multiple packages separated by spaces are possible. |
| aliases corresponding to different modules are also possible</td> |
| <td align="center" valign="top">Yes</td> |
| </tr> |
| <tr> |
| <td valign="top">quiet</td> |
| <td valign="top">suppress informational messages.</td> |
| <td align="center" valign="top">No, default "false"</td> |
| </tr> |
| <tr> |
| <td valign="top">port</td> |
| <td valign="top">Port used by CVS to communicate with the server.</td> |
| <td align="center" valign="top">No, default port 2401.</td> |
| </tr> |
| <tr> |
| <td valign="top">passfile</td> |
| <td valign="top">Password file to read passwords from.</td> |
| <td align="center" valign="top">No, default file ~/.cvspass.</td> |
| </tr> |
| <tr> |
| <td valign="top">failonerror</td> |
| <td valign="top">Stop the buildprocess if the command exits with a |
| returncode other than 0. Defaults to false</td> |
| <td align="center" valign="top">No</td> |
| </tr> |
| </table> |
| |
| <h3>Examples</h3> |
| <pre> <cvstagdiff cvsRoot=":pserver:anoncvs@cvs.apache.org:/home/cvspublic" |
| destfile="tagdiff.xml" |
| package="ant" |
| startTag="ANT_14" |
| endTag="ANT_141" |
| /></pre> |
| |
| <p>Generates a tagdiff report for all the changes that have been made |
| in the <code>ant</code> module between the tags <code>ANT_14</code> and <code>ANT_141</code>. |
| It writes these changes into the file <code>tagdiff.xml</code>.</p> |
| |
| <pre> <cvstagdiff |
| destfile="tagdiff.xml" |
| package="ant" |
| startDate="2002-01-01" |
| endDate="2002-31-01" |
| /></pre> |
| |
| <p>Generates a tagdiff report for all the changes that have been made |
| in the <code>ant</code> module in january 2002. In this example <code>cvsRoot</code> |
| has not been set. The current <code>cvsRoot</code> will be used (assuming the build is started |
| from a folder stored in <code>cvs</code>. |
| It writes these changes into the file <code>tagdiff.xml</code>.</p> |
| |
| <pre> <cvstagdiff |
| destfile="tagdiff.xml" |
| package="ant jakarta-gump" |
| startDate="2003-01-01" |
| endDate="2003-31-01" |
| /></pre> |
| |
| <p>Generates a tagdiff report for all the changes that have been made |
| in the <code>ant</code> and <code>jakarta-gump</code> modules in january 2003. |
| In this example <code>cvsRoot</code> |
| has not been set. The current <code>cvsRoot</code> will be used (assuming the build is started |
| from a folder stored in <code>cvs</code>. |
| It writes these changes into the file <code>tagdiff.xml</code>.</p> |
| |
| <h4>Generate Report</h4> |
| <p>Ant includes a basic XSLT stylesheet that you can use to generate |
| a HTML report based on the xml output. The following example illustrates |
| how to generate a HTML report from the XML report.</p> |
| |
| <pre> |
| <style in="tagdiff.xml" |
| out="tagdiff.html" |
| style="${ant.home}/etc/tagdiff.xsl"> |
| <param name="title" expression="Ant Diff"/> |
| <param name="module" expression="ant"/> |
| <param name="cvsweb" expression="http://cvs.apache.org/viewcvs/"/> |
| </style> |
| </pre> |
| |
| <h4>Output</h4> |
| <p> |
| The cvsroot and package attributes of the tagdiff element are new in ant 1.6.<br> |
| Notes on entry attributes : |
| <table border="1"> |
| <tr><th>Attribute</th><th>Comment</th></tr> |
| <tr><td>name</td><td>when reporting on one package, the package name is removed from the output</td></tr> |
| <tr><td>revision</td><td>supplied for files which exist at the end of the reporting period</td></tr> |
| <tr><td>prevrevision</td><td>supplied for files which exist at the beginning of the reporting period.<br> |
| Old CVS servers do not supply it for deleted files. CVS 1.12.2 supplies it.</td></tr> |
| </table> |
| </p> |
| <pre> |
| <?xml version="1.0" encoding="UTF-8"?> |
| <tagdiff startTag="ANT_14" endTag="ANT_141" |
| cvsroot=":pserver:anoncvs@cvs.apache.org:/home/cvspublic" package="ant"> |
| <entry> |
| <file> |
| <name>src/main/org/apache/tools/ant/DirectoryScanner.java</name> |
| <revision>1.15.2.1</revision> |
| <prevrevision>1.15</prevrevision> |
| </file> |
| </entry> |
| </tagdiff> |
| </pre> |
| |
| <hr><p align="center">Copyright © 2002-2003 Apache Software Foundation. All rights |
| Reserved.</p> |
| |
| </body> |
| </html> |
| |