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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. <meta name="GENERATOR" content="Mozilla/4.76 [en] (X11; U; Linux 2.2.18 i686) [Netscape]">
  7. <title>PVCS task</title>
  8. </head>
  9. <body>
  10. <h1>
  11. Ant Pvcs Task User Manual</h1>
  12. by
  13. <br><!-- Names are in alphabetical order, on last name -->
  14. <ul>
  15. <li>
  16. Thomas Christensen (<a href="mailto:tchristensen@nordija.com">tchristensen@nordija.com</a>)</li>
  17. </ul>
  18. Version 1.0 - 2001/01/31
  19. <br>
  20. <hr>
  21. <h2>
  22. Table of Contents</h2>
  23. <ul>
  24. <li>
  25. <a href="#introduction">Introduction</a></li>
  26. <li>
  27. <a href="#configuretask">Pvcs Task</a></li>
  28. <br>
  29. <hr>
  30. <h2>
  31. <a NAME="introduction"></a>Introduction</h2>
  32. The &lt;pvcs> task allows the user of ant to extract the latest edition
  33. of the source code from a PVCS repository. PVCS is a version control system
  34. developed by <a href="http://www.merant.com/products/pvcs">Merant</a>.
  35. <br>
  36. Before using this tag, the user running ant must have access to the commands
  37. of PVCS (get and pcli) and must have access to the repository. Note that the way to specify
  38. the repository is platform dependent so use property to specify location of repository.
  39. <br>
  40. This version has been tested agains PVCS version 6.5 and 6.6 under Windows and Solaris.
  41. <br>
  42. <hr>
  43. <h2>
  44. <a NAME="pvcs"></a>Pvcs Task</h2>
  45. <h3>
  46. Description</h3>
  47. The pvcs task is set to point at a PVCS repository and optionally a project
  48. within that repository, and can from that specification get the latest
  49. version of the files contained by the repository.
  50. <h3>
  51. Parameters</h3>
  52. <table BORDER CELLSPACING=0 CELLPADDING=2 >
  53. <tr>
  54. <td VALIGN=TOP WIDTH="12%"><b>Attribute</b></td>
  55. <td VALIGN=TOP WIDTH="78%"><b>Description</b></td>
  56. <td VALIGN=TOP WIDTH="10%"><b>Required</b></td>
  57. </tr>
  58. <tr>
  59. <td VALIGN=TOP WIDTH="12%">repository</td>
  60. <td VALIGN=TOP WIDTH="78%">The location of the repository (see your PVCS
  61. manuals)</td>
  62. <td VALIGN=TOP WIDTH="10%">Yes</td>
  63. </tr>
  64. <tr>
  65. <td VALIGN=TOP WIDTH="12%">pvcsproject</td>
  66. <td VALIGN=TOP WIDTH="78%">The project within the PVCS repository to extract
  67. files from ("/" is root project and that is default if this attribute isn't
  68. specified)</td>
  69. <td VALIGN=TOP WIDTH="10%">No</td>
  70. </tr>
  71. <tr>
  72. <td VALIGN=TOP WIDTH="12%">label</td>
  73. <td VALIGN=TOP WIDTH="78%">Only files marked with this label are extracted.</td>
  74. <td VALIGN=TOP WIDTH="10%">No</td>
  75. </tr>
  76. <tr>
  77. <td VALIGN=TOP WIDTH="12%">promotiongroup</td>
  78. <td VALIGN=TOP WIDTH="78%">Only files within this promotion group are extracted. Using
  79. both the <i>label</i> and the <i>promotiongroup</i> tag will cause the files in the
  80. promotion group and with that label to be extracted.
  81. </td>
  82. <td VALIGN=TOP WIDTH="10%">No</td>
  83. </tr>
  84. <tr>
  85. <td VALIGN=TOP WIDTH="12%">force</td>
  86. <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>
  87. <td VALIGN=TOP WIDTH="10%">No</td>
  88. </tr>
  89. <tr>
  90. <td VALIGN=TOP WIDTH="12%">workspace</td>
  91. <td VALIGN=TOP WIDTH="78%">By specifying a workspace, the files are extracted to that location. A PVCS workspace is a
  92. name for a location of the workfiles and isn't as such the location itself. You define the location for a workspace
  93. using the PVCS GUI clients. If this isn't specified the default workspace for the current user is used.</td>
  94. <td VALIGN=TOP WIDTH="10%">No</td>
  95. </tr>
  96. <tr>
  97. <td VALIGN=TOP WIDTH="12%">pvcsbin</td>
  98. <td VALIGN=TOP WIDTH="78%">On some systems the PVCS executables <i>pcli</i>
  99. and <i>get</i> are not found in the PATH. In such cases this attribute
  100. should be set to the bin directory of the PVCS installation containing
  101. the executables mentioned before. If this attribute isn't specified the
  102. tag expects the executables to be found using the PATH environment variable.</td>
  103. <td VALIGN=TOP WIDTH="10%">No</td>
  104. </tr>
  105. </table>
  106. <h3>
  107. Examples</h3>
  108. The following set-up extracts the latest version of the files in the pvcs
  109. repository.
  110. <ul>&nbsp;&nbsp;&nbsp; &lt;!-- ===================================================================
  111. -->
  112. <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;
  113. -->
  114. <br>&nbsp;&nbsp;&nbsp; &lt;!-- ===================================================================
  115. -->
  116. <br>&nbsp;&nbsp;&nbsp; &lt;target name="getlastes">
  117. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt; pvcs repository="/mnt/pvcs"
  118. pvcsproject="/myprj"/>
  119. <br>&nbsp;&nbsp;&nbsp; &lt;/target></ul>
  120. Now run:
  121. <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ant getlatest
  122. <p>This will cause the following output to appear:
  123. <pre>&nbsp;&nbsp;&nbsp; getlatest:
  124. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] PVCS Version Manager (VMGUI) v6.6.10 (Build 870) for Windows NT/80x86
  125. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] Copyright 1985-2000 MERANT.&nbsp; All rights reserved.
  126. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] PVCS Version Manager (get) v6.6.10 (Build 870) for Windows NT/80x86
  127. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] Copyright 1985-2000 MERANT.&nbsp; All rights reserved.
  128. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] c:\myws\myprj\main.java &lt;- C:\mypvcs\archives\myprj\main.java-arc
  129. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] rev 1.1
  130. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] c:\myws\myprj\apache\tool.java &lt;- C:\mypvcs\archives\myprj\apache\tools.java-arc
  131. &nbsp;&nbsp;&nbsp;&nbsp; [pvcs] rev 1.5
  132. &nbsp;&nbsp;&nbsp; BUILD SUCCESSFUL
  133. &nbsp;&nbsp;&nbsp; Total time: 19 seconds</pre>
  134. <pre>
  135. </pre>
  136. <hr WIDTH="100%"></ul>
  137. PVCS is a registered trademark of MERANT.
  138. </body>
  139. </html>