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.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Language" content="en-us">
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>CVSVersion Task</title>
  20. </head>
  21. <body>
  22. <h2><a name="cvs">CvsVersion</a></h2>
  23. <h3>Description</h3>
  24. <p>
  25. This task allows to retrieve a CVS client and server version.
  26. <i>Since Ant 1.6.1.</i>
  27. </p>
  28. <h3>Parameters</h3>
  29. <table border="1" cellpadding="2" cellspacing="0">
  30. <tr>
  31. <td valign="top"><b>Attribute</b></td>
  32. <td valign="top"><b>Description</b></td>
  33. <td align="center" valign="top"><b>Required</b></td>
  34. </tr>
  35. <tr>
  36. <td colspan="3">Attributes from parent Cvs task which are meaningful here</td>
  37. </tr>
  38. <tr>
  39. <td valign="top">cvsRoot</td>
  40. <td valign="top">the <code>CVSROOT</code> variable.</td>
  41. <td align="center" valign="top">No</td>
  42. </tr>
  43. <tr>
  44. <td valign="top">cvsRsh</td>
  45. <td valign="top">the <code>CVS_RSH</code> variable.</td>
  46. <td align="center" valign="top">No</td>
  47. </tr>
  48. <tr>
  49. <td valign="top">dest</td>
  50. <td valign="top">directory containing the checked out version of the project</td>
  51. <td align="center" valign="top">No, default is project's basedir.</td>
  52. </tr>
  53. <tr>
  54. <td valign="top">package</td>
  55. <td valign="top">the package/module to check out.</td>
  56. <td align="center" valign="top">No</td>
  57. </tr>
  58. <tr>
  59. <td valign="top">port</td>
  60. <td valign="top">Port used by CVS to communicate with the server.</td>
  61. <td align="center" valign="top">No, default port 2401.</td>
  62. </tr>
  63. <tr>
  64. <td valign="top">passfile</td>
  65. <td valign="top">Password file to read passwords from.</td>
  66. <td align="center" valign="top">No, default file ~/.cvspass.</td>
  67. </tr>
  68. <tr>
  69. <td valign="top">failonerror</td>
  70. <td valign="top">Stop the build process if the command exits with a
  71. return code other than <code>0</code>. Defaults to false</td>
  72. <td align="center" valign="top">No</td>
  73. </tr>
  74. <tr>
  75. <td colspan="3">Specific attributes</td>
  76. </tr>
  77. <tr>
  78. <td valign="top">clientversionproperty</td>
  79. <td valign="top">Name of a property where the cvsclient version
  80. should be stored</td>
  81. <td align="center" valign="top">No</td>
  82. </tr>
  83. <tr>
  84. <td valign="top">serverversionproperty</td>
  85. <td valign="top">Name of a property where the cvs server version
  86. should be stored</td>
  87. <td align="center" valign="top">No</td>
  88. </tr>
  89. </table>
  90. <h3>Examples</h3>
  91. <pre> &lt;cvsversion cvsRoot=&quot;:pserver:anoncvs@cvs.apache.org:/home/cvspublic&quot;
  92. passfile=&quot;/home/myself/.cvspass&quot;
  93. serverversionproperty=&quot;apachecvsversion&quot;
  94. clientversionproperty=&quot;localcvsversion&quot;
  95. /&gt;</pre>
  96. <p>finds out the cvs client and server versions and stores the versions in the
  97. properties called apachecvsversion and localcvsversion</p>
  98. </body>
  99. </html>