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.

cvs.html 4.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Apache Ant User Manual</title>
  5. </head>
  6. <body>
  7. <h2><a name="cvs">Cvs</a></h2>
  8. <h3>Description</h3>
  9. <p>Handles packages/modules retrieved from a
  10. <a href="http://www.cvshome.org/" target="_top">CVS</a> repository.</p>
  11. <p>When doing automated builds, the <a href="get.html">get task</a> should be
  12. preferred over the <i>checkout</i> command, because of speed.</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 valign="top">command</td>
  22. <td valign="top">the CVS command to execute.</td>
  23. <td align="center" valign="top">No, default &quot;checkout&quot;</td>
  24. </tr>
  25. <tr>
  26. <td valign="top">cvsRoot</td>
  27. <td valign="top">the CVSROOT 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 CVS_RSH variable.</td>
  33. <td align="center" valign="top">No</td>
  34. </tr>
  35. <tr>
  36. <td valign="top">dest</td>
  37. <td valign="top">the directory where the checked out files should be placed.</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">tag</td>
  47. <td valign="top">the tag of the package/module to check out.</td>
  48. <td align="center" valign="top">No</td>
  49. </tr>
  50. <tr>
  51. <td valign="top">date</td>
  52. <td valign="top">Use the most recent revision no later than the given date</td>
  53. <td align="center" valign="top">No</td>
  54. </tr>
  55. <tr>
  56. <td valign="top">quiet</td>
  57. <td valign="top">suppress informational messages.</td>
  58. <td align="center" valign="top">No, default &quot;false&quot;</td>
  59. </tr>
  60. <tr>
  61. <td valign="top">noexec</td>
  62. <td valign="top">report only, don't change any files.</td>
  63. <td align="center" valign="top">No, default &quot;false&quot;</td>
  64. </tr>
  65. <tr>
  66. <td valign="top">output</td>
  67. <td valign="top">the file to direct standard output from the command.</td>
  68. <td align="center" valign="top">No, default output to ANT Log as MSG_INFO.</td>
  69. </tr>
  70. <tr>
  71. <td valign="top">error</td>
  72. <td valign="top">the file to direct standard error from the command.</td>
  73. <td align="center" valign="top">No, default error to ANT Log as MSG_WARN.</td>
  74. </tr>
  75. <tr>
  76. <td valign="top">port</td>
  77. <td valign="top">Port used by CVS to communicate with the server.</td>
  78. <td align="center" valign="top">No, default port 2401.</td>
  79. </tr>
  80. <tr>
  81. <td valign="top">passfile</td>
  82. <td valign="top">Password file to read passwords from.</td>
  83. <td align="center" valign="top">No, default file ~/.cvspass.</td>
  84. </tr>
  85. <tr>
  86. <td valign="top">failonerror</td>
  87. <td valign="top">Stop the buildprocess if the command exits with a
  88. returncode other than 0. Defaults to false</td>
  89. <td align="center" valign="top">No</td>
  90. </tr>
  91. </table>
  92. <h3>Examples</h3>
  93. <pre> &lt;cvs cvsRoot=&quot;:pserver:anoncvs@jakarta.apache.org:/home/cvspublic&quot;
  94. package=&quot;jakarta-tools&quot;
  95. dest=&quot;${ws.dir}&quot;
  96. /&gt;</pre>
  97. <p>checks out the package/module &quot;jakarta-tools&quot; from the CVS
  98. repository pointed to by the cvsRoot attribute, and stores the files in &quot;${ws.dir}&quot;.</p>
  99. <pre> &lt;cvs dest=&quot;${ws.dir}&quot; command=&quot;update&quot;/&gt;</pre>
  100. <p>updates the package/module that has previously been checked out into
  101. &quot;${ws.dir}&quot;.</p>
  102. <pre> &lt;cvs command=&quot;-q diff -u -N&quot; output=&quot;patch.txt&quot;/&gt;</pre>
  103. <p>silently (-q) creates a file called patch.txt which contains a unified (-u) diff which includes new files added via &quot;cvs add&quot; (-N) and can be used as input to patch.</p>
  104. <pre> &lt;cvs command=&quot;update -A -d&quot;/&gt;</pre>
  105. <p>Updates from the head of repository ignoring sticky bits (-A) and creating any new directories as necessary (-d).</p>
  106. <p>Note: the text of the command is passed to cvs &quot;as-is&quot; so any cvs options should appear
  107. before the command, and any command options should appear after the command as in the diff example
  108. above. See <a href="http://www.cvshome.org/docs/manual/index.html" target="_top">the cvs manual</a> for details,
  109. specifically the <a href="http://www.cvshome.org/docs/manual/cvs_16.html" target="_top">Guide to CVS commands</a></p>
  110. <hr><p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  111. Reserved.</p>
  112. </body>
  113. </html>