Vault command line for Cruise Control without _sgbak

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
jkewley

Vault command line for Cruise Control without _sgbak

Post by jkewley » Fri Oct 08, 2004 3:08 pm

We are using the vault client to get latest on our Cont. Integration server (CruiseControl.Net). In an ideal world, the vault client would use its algorithm to just pull down the files that have changed since the last fetch and no files would be placed in the _sgbak folders, since we aren't worried about losing a correct version to a miscalculation during Get Latest. Unfortuantely, we can't get either of these two requirements to work - we get a full copy of every project with each Get Latest, and every file is backed up to an _sgbak directory.

Can someone provide assitance by telling me A) which command line switches to use so that the get latest only gets changed files (ie, how do we prevent a file's status from being 'unknown'?) and B) which command line switch to use to tell vault to not back up to the _sgbak folders?

FYI: CCnet runs as a service

jkewley

Think I solved it

Post by jkewley » Fri Oct 08, 2004 5:22 pm

Ok, here's what I did that appears to work:
> I set the CCNET service to run under my acount
> I opened the vault client and unchecked the Save FIles in Backup Folder option under Local Files
> While still in the client, I set the working folder for my tree appropriately

Now my build task is simply:
<exec basedir="." program="c:\program files\sourcegear\vault client\vault.exe" commandline="GET -merge overwrite -setfiletime current -host yadda.dadda.com: -username me -password you -repository mine $/Tree/Like/This"/>

By omitting the destfolder switch, the exe uses the working folder that I set in the client, and can figure out which files don't need to be overwritten

Post Reply