![]()
|
Ant Pvcs Task User Manualby
Problems with UNC pathnames and the use of () in paths are fixed and an updateonly argument introduced. Version 1.0 - 2001/01/31Initial release. Table of ContentsIntroductionThe pvcs task allows the user of ant to extract the latest edition of the source code from a PVCS repository. PVCS is a version control system developed by Merant.Before using this tag, the user running ant must have access to the commands of PVCS (get and pcli) and must have access to the repository. Note that the way to specify the repository is platform dependent so use property to specify location of repository. This version has been tested agains PVCS version 6.5 and 6.6 under Windows and Solaris. Pvcs TaskDescriptionThe pvcs task is set to point at a PVCS repository and optionally a project within that repository, and can from that specification get the latest version of the files contained by the repository.Parameters
Nested Elementspvcsproject element
Parameters
ExamplesThe following set-up extracts the latest version of the files in the pvcs repository.<!-- =================================================================== --> <!-- Get the latest version --> <!-- =================================================================== --> <target name="getlatest"> <pvcs repository="/mnt/pvcs" pvcsproject="/myprj"/> </target> Now run: ant getlatest
This will cause the following output to appear: getlatest: [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\tools.java-arc [pvcs] rev 1.5 BUILD SUCCESSFUL Total time: 19 secondsThis next example extracts the latest version of the files in the pvcs repository from two projects using nested <pvcsproject> elements. <!-- ===================================================================--> <!-- Get latest from myprj and myprj2 --> <!-- ===================================================================--> <target name="getlatest2"> <pvcs repository="/mnt/pvcs"> <pvcsproject name="/myprj"/> <pvcsproject name="/myprj2"/> </pvcs> </target> Now run: ant getlatest2
This will cause the following output to appear: 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 Copyright © 2001-2002 Apache Software Foundation. All rights Reserved. PVCS is a registered trademark of MERANT. |