ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MADOU Sigiswald (BMB)" <Sigiswald.MA...@proximus.net>
Subject RE: [pvcs] get labeled revisions problem
Date Fri, 28 Feb 2003 09:02:50 GMT

> c) says "Build failed", even though the operation was correct as expected
I have the same problem. Although sometimes, even in the case of warnings, the build is successful
after all. Why? It looks like the build is only considered successful if the last get was
successful. If the last get is a warning, the build's unsuccessful.
Either way, I "solved" it by setting the "ignorereturncode" attribute to "true" (ant 1.5.1).

> 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
correct, unfortunately lvf (ListVersionedFiles) can't make a distinction on labels
> 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 would rather say the problem is some "limited" functionality of pcli, although there probably
are ways to get around it. But I think that requires directly calling a pcli script from within
ant.
In case someone has some nice examples, I'd really appreciate it if you share it...

Kind regards,

/Sigiswald

-----Original Message-----
From: Joerg Buchberger [mailto:post@joerg-buchberger.de] 
Sent: Wednesday, February 26, 2003 15:00
To: user@ant.apache.org
Subject: [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



**** DISCLAIMER ****

"This e-mail and any attachment thereto may contain information which is confidential and/or
protected by intellectual property rights and are intended for the sole use of the recipient(s)
named above. 
Any use of the information contained herein (including, but not limited to, total or partial
reproduction, communication or distribution in any form) by other persons than the designated
recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by telephone or
by e-mail and delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at http://www.proximus.be
or refer to any Proximus agent.


Mime
View raw message