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

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