You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Joerg Buchberger <po...@joerg-buchberger.de> on 2003/02/26 14:59:53 UTC

[pvcs] get labeled revisions problem

Hi all.

Am using ant-1.5.1, jdk-1.4.1_01 and PVCS-6.7.11 on NT4SP6a on P4.

1. What I want ant to do for me:
--------------------------------
a) get from our PVCS archive all revisions marked with a certain label
b) say "build successful" once the operation is finished


2. What my buildfile contains:
------------------------------
<pvcs repository="L:/PVCS/VM/javadb"
      workspace="/@/Public/LocalWorkspace" 
      label="MyLabel-1.1"
      force="yes" >
   <pvcsproject name="/mypackages" />
</pvcs>


3. What ant does with my buildfile:
-----------------------------------
a) successfully does 1.a) - so far so good!
b) displays a warning for each archived file, that doesn't have the specified
label
c) says "Build failed", even though the operation was correct as expected


4. Some log snippets for further illustration:
----------------------------------------------

a) the successful get operations get logged similar to this:
[pvcs] Z:/java_codebase/mypackages/LabeledClass.java <-
L:/PVCS/VM/javadb/archives/mypackages/LabeledClass.java-arc
[pvcs] rev 1.0

b) the warnings all get logged similar to this:
[pvcs] get: warning, Version "MyLabel-1.1" not found in archive
"L:/PVCS/VM/javadb/archives/mypackages/SomeClass.java-arc".

c) at the end of the build it always looks like this :(
BUILD FAILED
file:L:/java_codebase/build/pvcs.xml:116: Failed executing: 
get -Y -rMyLabel-1.1 
@L:\java_codebase\build\pvcs_ant_-6363857303751429389.log. 
Return code was 1

d) the temporary pvcs_ant_xxx.log lists all archived files:
VM6.0 command-line style is used to do this;
each line looks similar to the following example;
"L:\PVCS\VM\javadb\archives\mypackages\AnyClass.java-arc(Z:\java_codebase\mypack
ages\AnyClass.java)"


5. Some thoughts:
-----------------
a) ants pvcs task uses pcli lvf command and saves result to temporary log file
b) it then uses the temp.log to execute pvcs get operations
c) if the lvf command would only return those archived files listed, which are
marked with the specified label, then the build wouldn't "fail" after all
d) is this a problem due to a bug in ants construction of the lvf command or is
this a problem due to some change in my PVCS version?



I'll greatly appreciate any hints on this.
Cheers,
Joerg