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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>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">dest</td>
  32. <td valign="top">the directory where the checked out files should be placed.</td>
  33. <td align="center" valign="top">No, default is project's basedir.</td>
  34. </tr>
  35. <tr>
  36. <td valign="top">package</td>
  37. <td valign="top">the package/module to check out.</td>
  38. <td align="center" valign="top">No</td>
  39. </tr>
  40. <tr>
  41. <td valign="top">tag</td>
  42. <td valign="top">the tag of the package/module to check out.</td>
  43. <td align="center" valign="top">No</td>
  44. </tr>
  45. <tr>
  46. <td valign="top">date</td>
  47. <td valign="top">Use the most recent revision no later than the given date</td>
  48. <td align="center" valign="top">No</td>
  49. </tr>
  50. <tr>
  51. <td valign="top">quiet</td>
  52. <td valign="top">suppress informational messages.</td>
  53. <td align="center" valign="top">No, default &quot;false&quot;</td>
  54. </tr>
  55. <tr>
  56. <td valign="top">noexec</td>
  57. <td valign="top">report only, don't change any files.</td>
  58. <td align="center" valign="top">No, default &quot;false&quot;</td>
  59. </tr>
  60. <tr>
  61. <td valign="top">output</td>
  62. <td valign="top">the file to direct standard output from the command.</td>
  63. <td align="center" valign="top">No, default output to ANT Log as MSG_INFO.</td>
  64. </tr>
  65. <tr>
  66. <td valign="top">error</td>
  67. <td valign="top">the file to direct standard error from the command.</td>
  68. <td align="center" valign="top">No, default error to ANT Log as MSG_WARN.</td>
  69. </tr>
  70. </table>
  71. <h3>Examples</h3>
  72. <pre> &lt;cvs cvsRoot=&quot;:pserver:anoncvs@jakarta.apache.org:/home/cvspublic&quot;
  73. package=&quot;jakarta-tools&quot;
  74. dest=&quot;${ws.dir}&quot;
  75. /&gt;</pre>
  76. <p>checks out the package/module &quot;jakarta-tools&quot; from the CVS
  77. repository pointed to by the cvsRoot attribute, and stores the files in &quot;${ws.dir}&quot;.</p>
  78. <pre> &lt;cvs dest=&quot;${ws.dir}&quot; command=&quot;update&quot;/&gt;</pre>
  79. <p>updates the package/module that has previously been checked out into
  80. &quot;${ws.dir}&quot;.</p>
  81. <pre> &lt;cvs command=&quot;-q diff -u -N&quot; output=&quot;patch.txt&quot;/&gt;</pre>
  82. <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>
  83. <pre> &lt;cvs command=&quot;update -A -d&quot;/&gt;</pre>
  84. <p>Updates from the head of repository ignoring sticky bits (-A) and creating any new directories as necessary (-d).</p>
  85. <p>Note: the text of the command is passed to cvs &quot;as-is&quot; so any cvs options should appear
  86. before the command, and any command options should appear after the command as in the diff example
  87. above. See <a href="http://www.cvshome.org/docs/manual/index.html" target="_top">the cvs manual</a> for details,
  88. specifically the <a href="http://www.cvshome.org/docs/manual/cvs_16.html" target="_top">Guide to CVS commands</a></p>
  89. <hr><p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  90. Reserved.</p>
  91. </body>
  92. </html>