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.

pvcstask.html 9.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <meta http-equiv="Content-Language" content="en-us">
  6. <title>PVCS task</title>
  7. </head>
  8. <body>
  9. <h1>
  10. Ant Pvcs Task User Manual</h1>
  11. by
  12. <br><!-- Names are in alphabetical order, on last name -->
  13. <ul>
  14. <li>
  15. Thomas Christensen (<a href="mailto:tchristensen@nordija.com">tchristensen@nordija.com</a>)</li>
  16. </ul>
  17. Version 1.0 - 2001/01/31
  18. <br>
  19. <hr>
  20. <h2>
  21. Table of Contents</h2>
  22. <ul>
  23. <li>
  24. <a href="#introduction">Introduction</a></li>
  25. <li>
  26. <a href="#configuretask">Pvcs Task</a></li>
  27. <br>
  28. <hr>
  29. <h2>
  30. <a NAME="introduction"></a>Introduction</h2>
  31. The &lt;pvcs> task allows the user of ant to extract the latest edition
  32. of the source code from a PVCS repository. PVCS is a version control system
  33. developed by <a href="http://www.merant.com/products/pvcs">Merant</a>.
  34. <br>
  35. Before using this tag, the user running ant must have access to the commands
  36. of PVCS (get and pcli) and must have access to the repository. Note that the way to specify
  37. the repository is platform dependent so use property to specify location of repository.
  38. <br>
  39. This version has been tested agains PVCS version 6.5 and 6.6 under Windows and Solaris.
  40. <br>
  41. <hr>
  42. <h2>
  43. <a NAME="pvcs"></a>Pvcs Task</h2>
  44. <h3>
  45. Description</h3>
  46. The pvcs task is set to point at a PVCS repository and optionally a project
  47. within that repository, and can from that specification get the latest
  48. version of the files contained by the repository.
  49. <h3>
  50. Parameters</h3>
  51. <table BORDER CELLSPACING=0 CELLPADDING=2 >
  52. <tr>
  53. <td VALIGN=TOP WIDTH="12%"><b>Attribute</b></td>
  54. <td VALIGN=TOP WIDTH="78%"><b>Description</b></td>
  55. <td VALIGN=TOP WIDTH="10%"><b>Required</b></td>
  56. </tr>
  57. <tr>
  58. <td VALIGN=TOP WIDTH="12%">repository</td>
  59. <td VALIGN=TOP WIDTH="78%">The location of the repository (see your PVCS
  60. manuals)</td>
  61. <td VALIGN=TOP WIDTH="10%">Yes</td>
  62. </tr>
  63. <tr>
  64. <td VALIGN=TOP WIDTH="12%">pvcsproject</td>
  65. <td VALIGN=TOP WIDTH="78%">The project within the PVCS repository to extract
  66. files from ("/" is root project and that is default if this attribute isn't
  67. specified)</td>
  68. <td VALIGN=TOP WIDTH="10%">No</td>
  69. </tr>
  70. <tr>
  71. <td VALIGN=TOP WIDTH="12%">label</td>
  72. <td VALIGN=TOP WIDTH="78%">Only files marked with this label are extracted.</td>
  73. <td VALIGN=TOP WIDTH="10%">No</td>
  74. </tr>
  75. <tr>
  76. <td VALIGN=TOP WIDTH="12%">promotiongroup</td>
  77. <td VALIGN=TOP WIDTH="78%">Only files within this promotion group are extracted. Using
  78. both the <i>label</i> and the <i>promotiongroup</i> tag will cause the files in the
  79. promotion group and with that label to be extracted.
  80. </td>
  81. <td VALIGN=TOP WIDTH="10%">No</td>
  82. </tr>
  83. <tr>
  84. <td VALIGN=TOP WIDTH="12%">force</td>
  85. <td VALIGN=TOP WIDTH="78%">If set to <i>yes</i> all files that exists and are writable are overwritten. Default <i>no</i> causes the files that are writable to be ignored. This stops the PVCS command <i>get</i> to stop asking questions!</td>
  86. <td VALIGN=TOP WIDTH="10%">No</td>
  87. </tr>
  88. <tr>
  89. <td VALIGN=TOP WIDTH="12%">workspace</td>
  90. <td VALIGN=TOP WIDTH="78%">By specifying a workspace, the files are extracted to that location. A PVCS workspace is a
  91. name for a location of the workfiles and isn't as such the location itself. You define the location for a workspace
  92. using the PVCS GUI clients. If this isn't specified the default workspace for the current user is used.</td>
  93. <td VALIGN=TOP WIDTH="10%">No</td>
  94. </tr>
  95. <tr>
  96. <td VALIGN=TOP WIDTH="12%">pvcsbin</td>
  97. <td VALIGN=TOP WIDTH="78%">On some systems the PVCS executables <i>pcli</i>
  98. and <i>get</i> are not found in the PATH. In such cases this attribute
  99. should be set to the bin directory of the PVCS installation containing
  100. the executables mentioned before. If this attribute isn't specified the
  101. tag expects the executables to be found using the PATH environment variable.</td>
  102. <td VALIGN=TOP WIDTH="10%">No</td>
  103. </tr>
  104. </table>
  105. <h3><a name="nested">Nested Elements</a></h3>
  106. <h3>pvcsproject element</h3>
  107. <p><code>pvcs</code> supports a nested
  108. <code>&lt;pvcsproject&gt;</code> element, that represents a project
  109. within the PVCS repository to extract files from. By nesting multiple
  110. <code>&lt;pvcsproject&gt;</code> elements under the
  111. <code>&lt;pvcs&gt;</code> task, multiple projects can be
  112. specified.</p>
  113. <h3>Parameters</h3>
  114. <table BORDER CELLSPACING=0 CELLPADDING=2 >
  115. <tr>
  116. <td VALIGN=TOP WIDTH="12%"><b>Attribute</b></td>
  117. <td VALIGN=TOP WIDTH="78%"><b>Description</b></td>
  118. <td VALIGN=TOP WIDTH="10%"><b>Required</b></td>
  119. </tr>
  120. <tr>
  121. <td VALIGN=TOP WIDTH="12%">name</td>
  122. <td VALIGN=TOP WIDTH="78%">The name of the pvcs project</td>
  123. <td VALIGN=TOP WIDTH="10%">Yes</td>
  124. </tr>
  125. </table>
  126. <h3>
  127. Examples</h3>
  128. The following set-up extracts the latest version of the files in the pvcs
  129. repository.
  130. <ul>&nbsp;&nbsp;&nbsp; &lt;!-- ===================================================================
  131. -->
  132. <br>&nbsp;&nbsp;&nbsp; &lt;!-- Get the latest version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  133. -->
  134. <br>&nbsp;&nbsp;&nbsp; &lt;!-- ===================================================================
  135. -->
  136. <br>&nbsp;&nbsp;&nbsp; &lt;target name="getlatest">
  137. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt; pvcs repository="/mnt/pvcs"
  138. pvcsproject="/myprj"/>
  139. <br>&nbsp;&nbsp;&nbsp; &lt;/target></ul>
  140. Now run:
  141. <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ant getlatest
  142. <p>This will cause the following output to appear:
  143. <pre>&nbsp;&nbsp;&nbsp; getlatest:
  144. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] PVCS Version Manager (VMGUI) v6.6.10 (Build 870) for Windows NT/80x86
  145. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] Copyright 1985-2000 MERANT.&nbsp; All rights reserved.
  146. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] PVCS Version Manager (get) v6.6.10 (Build 870) for Windows NT/80x86
  147. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] Copyright 1985-2000 MERANT.&nbsp; All rights reserved.
  148. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] c:\myws\myprj\main.java &lt;- C:\mypvcs\archives\myprj\main.java-arc
  149. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] rev 1.1
  150. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] c:\myws\myprj\apache\tool.java &lt;- C:\mypvcs\archives\myprj\apache\tools.java-arc
  151. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] rev 1.5
  152. &nbsp;&nbsp;&nbsp; BUILD SUCCESSFUL
  153. &nbsp;&nbsp;&nbsp; Total time: 19 seconds</pre>
  154. This next example extracts the latest version of the files in the pvcs
  155. repository from two projects using nested &lt;pvcsproject&gt; elements.
  156. <ul>&nbsp;&nbsp;&nbsp; &lt;!-- ===================================================================
  157. -->
  158. <br>&nbsp;&nbsp;&nbsp; &lt;!-- Get latest from myprj and myprj2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  159. -->
  160. <br>&nbsp;&nbsp;&nbsp; &lt;!-- ===================================================================
  161. -->
  162. <br>&nbsp;&nbsp;&nbsp; &lt;target name="getlatest2">
  163. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pvcs repository="/mnt/pvcs">
  164. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pvcsproject name="/myprj" />
  165. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pvcsproject name="/myprj2" />
  166. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/pvcs>
  167. <br>&nbsp;&nbsp;&nbsp; &lt;/target></ul>
  168. Now run:
  169. <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ant getlatest2
  170. <p>This will cause the following output to appear:
  171. <pre>&nbsp;&nbsp;&nbsp; getlatest2:
  172. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] PVCS Version Manager (VMGUI) v6.6.10 (Build 870) for Windows NT/80x86
  173. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] Copyright 1985-2000 MERANT.&nbsp; All rights reserved.
  174. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] PVCS Version Manager (get) v6.6.10 (Build 870) for Windows NT/80x86
  175. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] Copyright 1985-2000 MERANT.&nbsp; All rights reserved.
  176. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] c:\myws\myprj\main.java &lt;- C:\mypvcs\archives\myprj\main.java-arc
  177. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] rev 1.1
  178. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] c:\myws\myprj\apache\tool.java &lt;- C:\mypvcs\archives\myprj\apache\tool.java-arc
  179. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] rev 1.5
  180. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] c:\myws\myprj2\apache\tool2.java &lt;- C:\mypvcs\archives\myprj2\apache\tool2.java-arc
  181. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] rev 1.2
  182. &nbsp;&nbsp;&nbsp; BUILD SUCCESSFUL
  183. &nbsp;&nbsp;&nbsp; Total time: 22 seconds</pre>
  184. <pre>
  185. </pre>
  186. <hr WIDTH="100%"></ul>
  187. PVCS is a registered trademark of MERANT.
  188. </body>
  189. </html>