Well Peter, I don't know why I tried it, but I did:
<project name="GetLatest">
<vssget
user="Efetzer"
localpath="D:\TestGetLatest\Development"
recursive="true"
replace="true"
writable="true"
dbpath="\\Server\Repository\srcsafe.ini"
path="$/Centre/Development"
label="Build 53"
/>
</project>
<vssget
user="Efetzer"
localpath="D:\TestGetLatest\Development"
recursive="true"
replace="true"
writable="true"
dbpath="\\Server\Repository\srcsafe.ini"
path="$/Centre/Development"
label="Build 53"
/>
</project>
It didn't complain, but it just got the latest as you reported. I'm guessing it wouldn't whine about a date either... Does anyone know if this feature works in Ant?
Eric
Peter Lanoie <[EMAIL PROTECTED]> wrote:
Peter Lanoie <[EMAIL PROTECTED]> wrote:
Eric,I have had similar problems with VSSGET. I have been labeling my projects when they get built with a build.revision number (9999.9999). Following that, I call VSSGET using that label. I have not had it break on that call like you are seeing ("Version not found") however I have since attempted to get a past version and it indeed does not retrieve the past version, only returns the current. I think there is a problem with the task or the VSS COM DLL. I tried using a text label and then it totally failed. The task docs state that it accepts a version number, date, or label but I'm not exact sure how it would know the difference between a version number and a label given that labels can be anything. If you are unfortunate enough to have a label that matches a version number, what happens? Also, given that I got total failure on text labels, I'm not sure how to fix the problem. Otherwise, I have had good luck with the VSS tasks.Peter-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Eric Fetzer
Sent: Wednesday, July 30, 2003 16:24
To: Nant Users
Subject: [Nant-users] vssget - version=I'm trying to get vssget based on a label working. It works well for me without a label. I'm using nantContrib from 6/3/2003. Here's my .build file:<project name="GetLatest">
<vssget
user="Efetzer"
localpath="D:\TestGetLatest\Development"
recursive="true"
replace="true"
writable="true"
dbpath="\\Server\Repository\srcsafe.ini"
path="$/Development"
version="Build 53"
/>
</project>NAnt is saying:vssget failed
Version not foundThis particular label was created at the same level as the path. Does anyone know what I'm doing wrong? Thanks - Eric
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!