~ubuntu-branches/ubuntu/jaunty/ant/jaunty-proposed

« back to all changes in this revision

Viewing changes to docs/manual/OptionalTasks/pvcstask.html

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Gybas
  • Date: 2002-02-14 14:28:48 UTC
  • Revision ID: james.westby@ubuntu.com-20020214142848-2ww7ynmqkj31vlmn
Tags: upstream-1.4.1
ImportĀ upstreamĀ versionĀ 1.4.1

Show diffs side-by-side

added added

removed removed

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