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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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. <p><b>Note:</b>
  12. Before using this task, the user running ant must have access to the
  13. commands of PVCS (get and pcli) and must have access to the
  14. repository. Note that the way to specify the repository is platform
  15. dependent so use property to specify location of repository.
  16. </p>
  17. by
  18. <br><!-- Names are in alphabetical order, on last name -->
  19. <ul>
  20. <li>Thomas Christensen (<a href="mailto:tchristensen@nordija.com">tchristensen@nordija.com</a>)</li>
  21. <li>Don Jeffery (<a href="mailto:donj@apogeenet.com">donj@apogeenet.com</a>)</li>
  22. </ul>
  23. Version 1.1 - 2001/06/27<br>
  24. <p>Problems with UNC pathnames and the use of () in paths are fixed and an updateonly
  25. argument introduced.</p>
  26. Version 1.0 - 2001/01/31<br>
  27. <p>Initial release.</p>
  28. <hr>
  29. <h2>
  30. Table of Contents</h2>
  31. <ul>
  32. <li><a href="#introduction">Introduction</a></li>
  33. <li><a href="#pvcs">Pvcs Task</a></li>
  34. </ul>
  35. <hr>
  36. <h2><a NAME="introduction">Introduction</a></h2>
  37. The pvcs task allows the user of ant to extract the latest edition
  38. of the source code from a PVCS repository. PVCS is a version control system
  39. developed by <a href="http://www.merant.com/products/pvcs">Merant</a>.
  40. <br>
  41. This version has been tested agains PVCS version 6.5 and 6.6 under Windows and Solaris.
  42. <hr>
  43. <h2><a NAME="pvcs">Pvcs Task</a></h2>
  44. <h3>Description</h3>
  45. The pvcs task is set to point at a PVCS repository and optionally a project
  46. within that repository, and can from that specification get the latest
  47. version of the files contained by the repository.
  48. <h3>
  49. Parameters</h3>
  50. <table BORDER CELLSPACING=0 CELLPADDING=2 >
  51. <tr>
  52. <td VALIGN=TOP WIDTH="12%"><b>Attribute</b></td>
  53. <td VALIGN=TOP WIDTH="78%"><b>Description</b></td>
  54. <td VALIGN=TOP WIDTH="10%"><b>Required</b></td>
  55. </tr>
  56. <tr>
  57. <td VALIGN=TOP WIDTH="12%">repository</td>
  58. <td VALIGN=TOP WIDTH="78%">The location of the repository (see your PVCS
  59. manuals)</td>
  60. <td VALIGN=TOP WIDTH="10%">Yes</td>
  61. </tr>
  62. <tr>
  63. <td VALIGN=TOP WIDTH="12%">pvcsproject</td>
  64. <td VALIGN=TOP WIDTH="78%">The project within the PVCS repository to extract
  65. files from (&quot;/&quot; is root project and that is default if this attribute isn't
  66. specified)</td>
  67. <td VALIGN=TOP WIDTH="10%">No</td>
  68. </tr>
  69. <tr>
  70. <td VALIGN=TOP WIDTH="12%">label</td>
  71. <td VALIGN=TOP WIDTH="78%">Only files marked with this label are extracted.</td>
  72. <td VALIGN=TOP WIDTH="10%">No</td>
  73. </tr>
  74. <tr>
  75. <td VALIGN=TOP WIDTH="12%">promotiongroup</td>
  76. <td VALIGN=TOP WIDTH="78%">Only files within this promotion group are extracted. Using
  77. both the <i>label</i> and the <i>promotiongroup</i> tag will cause the files in the
  78. promotion group and with that label to be extracted.
  79. </td>
  80. <td VALIGN=TOP WIDTH="10%">No</td>
  81. </tr>
  82. <tr>
  83. <td VALIGN=TOP WIDTH="12%">force</td>
  84. <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>
  85. <td VALIGN=TOP WIDTH="10%">No</td>
  86. </tr>
  87. <tr>
  88. <td VALIGN=TOP WIDTH="12%">workspace</td>
  89. <td VALIGN=TOP WIDTH="78%">By specifying a workspace, the files are extracted to that location. A PVCS workspace is a
  90. name for a location of the workfiles and isn't as such the location itself. You define the location for a workspace
  91. using the PVCS GUI clients. If this isn't specified the default workspace for the current user is used.</td>
  92. <td VALIGN=TOP WIDTH="10%">No</td>
  93. </tr>
  94. <tr>
  95. <td VALIGN=TOP WIDTH="12%">pvcsbin</td>
  96. <td VALIGN=TOP WIDTH="78%">On some systems the PVCS executables <i>pcli</i>
  97. and <i>get</i> are not found in the PATH. In such cases this attribute
  98. should be set to the bin directory of the PVCS installation containing
  99. the executables mentioned before. If this attribute isn't specified the
  100. tag expects the executables to be found using the PATH environment variable.</td>
  101. <td VALIGN=TOP WIDTH="10%">No</td>
  102. </tr>
  103. <tr>
  104. <td VALIGN=TOP WIDTH="12%">ignorereturncode</td>
  105. <td VALIGN=TOP WIDTH="78%">If set to <i>true</i> the return value from executing
  106. the pvcs commands are ignored.</td>
  107. <td VALIGN=TOP WIDTH="10%">No</td>
  108. </tr>
  109. <tr>
  110. <td VALIGN=TOP WIDTH="12%">updateonly</td>
  111. <td VALIGN=TOP WIDTH="78%">If set to <i>true</i> files are gotten only if
  112. newer than existing local files.</td>
  113. <td VALIGN=TOP WIDTH="10%">No</td>
  114. </tr>
  115. <tr>
  116. <td valign="TOP">filenameformat</td>
  117. <td valign="TOP">The format of your folder names in a
  118. format suitable for <code>java.text.MessageFormat</code>.
  119. Defaults to <code>{0}-arc({1})</code>. Repositories where
  120. the archive extension is not <code>-arc</code> should set
  121. this.</td>
  122. <td valign="TOP">No</td>
  123. </tr>
  124. <tr>
  125. <td valign="TOP">linestart</td>
  126. <td valign="TOP">Used to parse the output of the pcli
  127. command. It defaults to <code>&quot;P:</code>. The parser already
  128. knows about / and \\, this property is useful in cases where the
  129. repository is accessed on a Windows platform via a drive letter
  130. mapping.</td>
  131. <td valign="TOP">No</td>
  132. </tr>
  133. </table>
  134. <h3><a name="nested">Nested Elements</a></h3>
  135. <h3>pvcsproject element</h3>
  136. <p><code>pvcs</code> supports a nested
  137. <code>&lt;pvcsproject&gt;</code> element, that represents a project
  138. within the PVCS repository to extract files from. By nesting multiple
  139. <code>&lt;pvcsproject&gt;</code> elements under the
  140. <code>&lt;pvcs&gt;</code> task, multiple projects can be
  141. specified.</p>
  142. <h3>Parameters</h3>
  143. <table BORDER CELLSPACING=0 CELLPADDING=2 >
  144. <tr>
  145. <td VALIGN=TOP WIDTH="12%"><b>Attribute</b></td>
  146. <td VALIGN=TOP WIDTH="78%"><b>Description</b></td>
  147. <td VALIGN=TOP WIDTH="10%"><b>Required</b></td>
  148. </tr>
  149. <tr>
  150. <td VALIGN=TOP WIDTH="12%">name</td>
  151. <td VALIGN=TOP WIDTH="78%">The name of the pvcs project</td>
  152. <td VALIGN=TOP WIDTH="10%">Yes</td>
  153. </tr>
  154. </table>
  155. <h3>Examples</h3>
  156. The following set-up extracts the latest version of the files in the pvcs repository.
  157. <pre>
  158. &lt;!-- =================================================================== --&gt;
  159. &lt;!-- Get the latest version --&gt;
  160. &lt;!-- =================================================================== --&gt;
  161. &lt;target name=&quot;getlatest&quot;&gt;
  162. &lt;pvcs repository=&quot;/mnt/pvcs&quot; pvcsproject=&quot;/myprj&quot;/&gt;
  163. &lt;/target&gt;</ul>
  164. </pre>
  165. <p>Now run:</p>
  166. <code>ant getlatest</code>
  167. <p>This will cause the following output to appear:</p>
  168. <pre>
  169. getlatest:
  170. [pvcs] PVCS Version Manager (VMGUI) v6.6.10 (Build 870) for Windows NT/80x86
  171. [pvcs] Copyright 1985-2000 MERANT. All rights reserved.
  172. [pvcs] PVCS Version Manager (get) v6.6.10 (Build 870) for Windows NT/80x86
  173. [pvcs] Copyright 1985-2000 MERANT. All rights reserved.
  174. [pvcs] c:\myws\myprj\main.java &lt;- C:\mypvcs\archives\myprj\main.java-arc
  175. [pvcs] rev 1.1
  176. [pvcs] c:\myws\myprj\apache\tool.java &lt;- C:\mypvcs\archives\myprj\apache\tools.java-arc
  177. [pvcs] rev 1.5
  178. BUILD SUCCESSFUL
  179. Total time: 19 seconds</pre>
  180. This next example extracts the latest version of the files in the pvcs
  181. repository from two projects using nested &lt;pvcsproject&gt; elements.
  182. <pre>
  183. &lt;!-- ===================================================================--&gt;
  184. &lt;!-- Get latest from myprj and myprj2 --&gt;
  185. &lt;!-- ===================================================================--&gt;
  186. &lt;target name=&quot;getlatest2&quot;&gt;
  187. &lt;pvcs repository=&quot;/mnt/pvcs&quot;&gt;
  188. &lt;pvcsproject name=&quot;/myprj&quot;/&gt;
  189. &lt;pvcsproject name=&quot;/myprj2&quot;/&gt;
  190. &lt;/pvcs&gt;
  191. &lt;/target&gt;</ul>
  192. </pre>
  193. <p>Now run:</p>
  194. <code>ant getlatest2</code>
  195. <p>This will cause the following output to appear:</p>
  196. <pre>
  197. getlatest2:
  198. [pvcs] PVCS Version Manager (VMGUI) v6.6.10 (Build 870) for Windows NT/80x86
  199. [pvcs] Copyright 1985-2000 MERANT. All rights reserved.
  200. [pvcs] PVCS Version Manager (get) v6.6.10 (Build 870) for Windows NT/80x86
  201. [pvcs] Copyright 1985-2000 MERANT. All rights reserved.
  202. [pvcs] c:\myws\myprj\main.java &lt;- C:\mypvcs\archives\myprj\main.java-arc
  203. [pvcs] rev 1.1
  204. [pvcs] c:\myws\myprj\apache\tool.java &lt;- C:\mypvcs\archives\myprj\apache\tool.java-arc
  205. [pvcs] rev 1.5
  206. [pvcs] c:\myws\myprj2\apache\tool2.java &lt;- C:\mypvcs\archives\myprj2\apache\tool2.java-arc
  207. [pvcs] rev 1.2
  208. BUILD SUCCESSFUL
  209. Total time: 22 seconds</pre>
  210. <hr WIDTH="100%">
  211. <p align="center">Copyright &copy; 2001-2003 Apache Software
  212. Foundation. All rights Reserved.</p>
  213. <p>PVCS is a registered trademark of MERANT.</p>
  214. </body>
  215. </html>