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.

cvsversion.html 2.9 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>CVSVersion Task</title>
  5. <link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
  6. </head>
  7. <body>
  8. <h2><a name="cvs">CvsVersion</a></h2>
  9. <h3>Description</h3>
  10. <p>
  11. This task allows to retrieve a CVS client and server version.
  12. <i>Since Ant 1.6.1.</i>
  13. </p>
  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 colspan="3">Attributes from parent Cvs task which are meaningful here</td>
  23. </tr>
  24. <tr>
  25. <td valign="top">cvsRoot</td>
  26. <td valign="top">the <code>CVSROOT</code> variable.</td>
  27. <td align="center" valign="top">No</td>
  28. </tr>
  29. <tr>
  30. <td valign="top">cvsRsh</td>
  31. <td valign="top">the <code>CVS_RSH</code> variable.</td>
  32. <td align="center" valign="top">No</td>
  33. </tr>
  34. <tr>
  35. <td valign="top">dest</td>
  36. <td valign="top">directory containing the checked out version of the project</td>
  37. <td align="center" valign="top">No, default is project's basedir.</td>
  38. </tr>
  39. <tr>
  40. <td valign="top">package</td>
  41. <td valign="top">the package/module to check out.</td>
  42. <td align="center" valign="top">No</td>
  43. </tr>
  44. <tr>
  45. <td valign="top">port</td>
  46. <td valign="top">Port used by CVS to communicate with the server.</td>
  47. <td align="center" valign="top">No, default port 2401.</td>
  48. </tr>
  49. <tr>
  50. <td valign="top">passfile</td>
  51. <td valign="top">Password file to read passwords from.</td>
  52. <td align="center" valign="top">No, default file ~/.cvspass.</td>
  53. </tr>
  54. <tr>
  55. <td valign="top">failonerror</td>
  56. <td valign="top">Stop the build process if the command exits with a
  57. return code other than <code>0</code>. Defaults to false</td>
  58. <td align="center" valign="top">No</td>
  59. </tr>
  60. <tr>
  61. <td colspan="3">Specific attributes</td>
  62. </tr>
  63. <tr>
  64. <td valign="top">clientversionproperty</td>
  65. <td valign="top">Name of a property where the cvsclient version
  66. should be stored</td>
  67. <td align="center" valign="top">No</td>
  68. </tr>
  69. <tr>
  70. <td valign="top">serverversionproperty</td>
  71. <td valign="top">Name of a property where the cvs server version
  72. should be stored</td>
  73. <td align="center" valign="top">No</td>
  74. </tr>
  75. </table>
  76. <h3>Examples</h3>
  77. <pre> &lt;cvsversion cvsRoot=&quot;:pserver:anoncvs@cvs.apache.org:/home/cvspublic&quot;
  78. passfile=&quot;/home/myself/.cvspass&quot;
  79. serverversionproperty=&quot;apachecvsversion&quot;
  80. clientversionproperty=&quot;localcvsversion&quot;
  81. /&gt;</pre>
  82. <p>finds out the cvs client and server versions and stores the versions in the
  83. properties called apachecvsversion and localcvsversion</p>
  84. <hr>
  85. <p align="center">Copyright &copy; 2004 Apache Software
  86. Foundation. All rights Reserved.</p>
  87. </body>
  88. </html>