@@ -3,7 +3,6 @@
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Mozilla/4.76 [en] (X11; U; Linux 2.2.18 i686) [Netscape]">
<title>PVCS task</title>
<title>PVCS task</title>
</head>
</head>
<body>
<body>
@@ -132,6 +131,35 @@ tag expects the executables to be found using the PATH environment variable.</td
<td VALIGN=TOP WIDTH="10%">No</td>
<td VALIGN=TOP WIDTH="10%">No</td>
</tr>
</tr>
</table>
</table>
<h3><a name="nested">Nested Elements</a></h3>
<h3>pvcsproject element</h3>
<p><code>pvcs</code> supports a nested
<code><pvcsproject></code> element, that represents a project
within the PVCS repository to extract files from. By nesting multiple
<code><pvcsproject></code> elements under the
<code><pvcs></code> task, multiple projects can be
specified.</p>
<h3>Parameters</h3>
<table BORDER CELLSPACING=0 CELLPADDING=2 >
<tr>
<td VALIGN=TOP WIDTH="12%"><b>Attribute</b></td>
<td VALIGN=TOP WIDTH="78%"><b>Description</b></td>
<td VALIGN=TOP WIDTH="10%"><b>Required</b></td>
</tr>
<tr>
<td VALIGN=TOP WIDTH="12%">name</td>
<td VALIGN=TOP WIDTH="78%">The name of the pvcs project</td>
<td VALIGN=TOP WIDTH="10%">Yes</td>
</tr>
</table>
<h3>
<h3>
Examples</h3>
Examples</h3>
@@ -143,7 +171,7 @@ repository.
-->
-->
<br> <!-- ===================================================================
<br> <!-- ===================================================================
-->
-->
<br> <target name="getlas tes">
<br> <target name="getlatest ">
<br> < pvcs repository="/mnt/pvcs"
<br> < pvcs repository="/mnt/pvcs"
pvcsproject="/myprj"/>
pvcsproject="/myprj"/>
<br> </target></ul>
<br> </target></ul>
@@ -164,6 +192,39 @@ Now run:
Total time: 19 seconds</pre>
Total time: 19 seconds</pre>
This next example extracts the latest version of the files in the pvcs
repository from two projects using nested <pvcsproject> elements.
<ul> <!-- ===================================================================
-->
<br> <!-- Get latest from myprj and myprj2
-->
<br> <!-- ===================================================================
-->
<br> <target name="getlatest2">
<br> <pvcs repository="/mnt/pvcs">
<br> <pvcsproject name="/myprj" />
<br> <pvcsproject name="/myprj2" />
<br> </pvcs>
<br> </target></ul>
Now run:
<p> ant getlatest2
<p>This will cause the following output to appear:
<pre> getlatest2:
[pvcs] PVCS Version Manager (VMGUI) v6.6.10 (Build 870) for Windows NT/80x86
[pvcs] Copyright 1985-2000 MERANT. All rights reserved.
[pvcs] PVCS Version Manager (get) v6.6.10 (Build 870) for Windows NT/80x86
[pvcs] Copyright 1985-2000 MERANT. All rights reserved.
[pvcs] c:\myws\myprj\main.java <- C:\mypvcs\archives\myprj\main.java-arc
[pvcs] rev 1.1
[pvcs] c:\myws\myprj\apache\tool.java <- C:\mypvcs\archives\myprj\apache\tool.java-arc
[pvcs] rev 1.5
[pvcs] c:\myws\myprj2\apache\tool2.java <- C:\mypvcs\archives\myprj2\apache\tool2.java-arc
[pvcs] rev 1.2
BUILD SUCCESSFUL
Total time: 22 seconds</pre>
<pre>
<pre>
</pre>
</pre>