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

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