Posted By:
Bruce_Clements
Posted On:
Tuesday, January 22, 2002 03:05 PM
Andrew May has written replacements for the pvcs task which accept a configFile attribute where appropriate. (See
links below.) Unfortunately, his pvcsget task doesn't support automatic discovery of config files. Here's a
parameterized target which uses pvcs's command line interface (pcli) to find the config file, and a call thereto:
dir="."
executable="pcli"
outputproperty="configFile1"
vmlauncher="false"
>
repository="${repository}"
pvcsbin="C:PROGRA~1PVCSVMwin32in"
force="yes"
configFile="\${configFile1}"
promotiongroup="${promotiongroup}"
>
Due to the exec task, this target is Windows-centric. Hopefully, pcli will be easier to deal with in a Unix
environment. Sorry I can't test that since we don't have a Unix installation of PVCS yet.
With this approach, you can operate on only one project at a time, but at least that's more than zero. Of course,
if you're willing to forego parameterization and put up with the exec ugliness before every pvcsget, then you can
include as many pvcsproject elements as you like.
Introduction to proposed PVCS tasks by Andrew May:
href="http://marc.theaimsgroup.com/?l=ant-dev&m=99667939904467&w=2">http://marc.theaimsgroup.com/?l=ant-dev&m=996679
39904467&w=2
Zip file containing source code of proposed PVCS tasks:
href="http://marc.theaimsgroup.com/?l=ant-dev&m=99667939904467&q=p3">http://marc.theaimsgroup.com/?l=ant-dev&m=99667
939904467&q=p3