getting latest from Vault

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

Moderator: SourceGear

Post Reply
btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

getting latest from Vault

Post by btd » Tue Apr 10, 2007 10:46 am

I am using Nant to get my latest code from Source Gear. Below is the Nant command which works. But after "getting latest" I am unable to use MSBUILD to build the solution. Seems as if "getting latest" gets all the files but marks them all read only. So when I try and remove the readonly flag from the parent folder, I still can't compile.

Can anyone help.

Thanks btd
<exec program="${vault.exe.path}" if="${UseVaultExe=='1'}">
<arg line="get" />
<arg line="-destpath ${getLatest.path}" />
<arg line="-host ${vault.server.name}" />
<arg line="-user ${sourcecode.vault.username}" />
<arg line="-password ${sourcecode.vault.password}" />
<arg line="-repository "${sourcecode.vault.repository.project}"" />
<!-- <arg line="-backup no" /> -->
<arg line="-merge overwrite" />
<arg line=""${sourcecode.project.root}"" />
</exec>

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Apr 11, 2007 2:50 pm

Files that are in the working folder do get a read-only flag placed on them. One thing you could do is perform that particular get out to a folder that is not a working folder.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Apr 11, 2007 3:58 pm

Look back at this other thread where you posted. The answer you want is given there.

http://support.sourcegear.com/viewtopic ... 1096#31096

Post Reply