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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. </p>
  13. <h3>Parameters</h3>
  14. <table border="1" cellpadding="2" cellspacing="0">
  15. <tr>
  16. <td valign="top"><b>Attribute</b></td>
  17. <td valign="top"><b>Description</b></td>
  18. <td align="center" valign="top"><b>Required</b></td>
  19. </tr>
  20. <tr>
  21. <td colspan="3">Attributes from parent Cvs task which are meaningful here</td>
  22. </tr>
  23. <tr>
  24. <td valign="top">cvsRoot</td>
  25. <td valign="top">the <code>CVSROOT</code> variable.</td>
  26. <td align="center" valign="top">No</td>
  27. </tr>
  28. <tr>
  29. <td valign="top">cvsRsh</td>
  30. <td valign="top">the <code>CVS_RSH</code> variable.</td>
  31. <td align="center" valign="top">No</td>
  32. </tr>
  33. <tr>
  34. <td valign="top">dest</td>
  35. <td valign="top">directory containing the checked out version of the project</td>
  36. <td align="center" valign="top">No, default is project's basedir.</td>
  37. </tr>
  38. <tr>
  39. <td valign="top">package</td>
  40. <td valign="top">the package/module to check out.</td>
  41. <td align="center" valign="top">No</td>
  42. </tr>
  43. <tr>
  44. <td valign="top">port</td>
  45. <td valign="top">Port used by CVS to communicate with the server.</td>
  46. <td align="center" valign="top">No, default port 2401.</td>
  47. </tr>
  48. <tr>
  49. <td valign="top">passfile</td>
  50. <td valign="top">Password file to read passwords from.</td>
  51. <td align="center" valign="top">No, default file ~/.cvspass.</td>
  52. </tr>
  53. <tr>
  54. <td valign="top">failonerror</td>
  55. <td valign="top">Stop the build process if the command exits with a
  56. return code other than <code>0</code>. Defaults to false</td>
  57. <td align="center" valign="top">No</td>
  58. </tr>
  59. <tr>
  60. <td colspan="3">Specific attributes</td>
  61. </tr>
  62. <tr>
  63. <td valign="top">cvsclientproperty</td>
  64. <td valign="top">Name of a property where the cvsclient version
  65. should be stored</td>
  66. <td align="center" valign="top">No</td>
  67. </tr>
  68. <tr>
  69. <td valign="top">cvsserverproperty</td>
  70. <td valign="top">Name of a property where the cvs server version
  71. should be stored</td>
  72. <td align="center" valign="top">No</td>
  73. </tr>
  74. </table>
  75. <h3>Examples</h3>
  76. <pre> &lt;cvsversion cvsRoot=&quot;:pserver:anoncvs@cvs.apache.org:/home/cvspublic&quot;
  77. passfile=&quot;/home/myself/.cvspass&quot;
  78. cvsserverproperty=&quot;apachecvsversion&quot;
  79. cvsclientproperty=&quot;localcvsversion&quot;
  80. /&gt;</pre>
  81. <p>finds out the cvs client and server versions and stores the versions in the
  82. properties called apachecvsversion and localcvsversion</p>
  83. <hr>
  84. <p align="center">Copyright &copy; 2004 Apache Software
  85. Foundation. All rights Reserved.</p>
  86. </body>
  87. </html>