Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   Checkout recursively from Vault (https://www.kinook.com/Forum/showthread.php?t=595)

Kim 10-19-2004 06:03 AM

Checkout recursively from Vault
 
Hi,
Is there a way to checkout files recursively from Vault - just like the checkbox available when using sourcesafe checkout?

I would like to checkout all AssemblyInfo.cs files before build, to have correct build number in vault.

kinook 10-19-2004 08:47 AM

With Vault, all commands that support a recursive option are recursive by default (you can make it *non-recursive* by checking the 'Do not recursively process folders' checkbox on the Flags tab of the Vault action).

Kim 10-19-2004 09:13 AM

The checkbox "Do not recursively process folders" is not checked. Does that mean that I have to create my own "search" logic? Or are there any other options available?

kinook 10-19-2004 10:18 AM

It appears that the Vault command-line client does not support recursive checkouts with file masks (folders only?). You may want to submit a request to SourceGear to add support for this.

kevina 10-20-2004 01:20 AM

If you are first retrieving the files using get (so they are available on the build machine) when you do the checkout, you could you a Process Files step to workaround this Vault limitation.

The xml fragment below can be copied and pasted into Visual Build Pro to see an example. This hasn't been tested, but should work with minimal effort.



AssemblyInfo.cs
c:\temp\visbuildpro\assemblyinfocheckout
-1
-1
1
Iterate over folders containing AssemblyInfo.cs


the above converts an absolute path to a valid Vault repository path for use by the Vault Checkout command
VAULT_FOLDER_PATH
[Replace(Replace("%PROCFILES_FULLPATH%", "c:\temp", "$"), "\", "/")]
2
Populate Macro with Vault compatible path


checkout
%VAULT_SERVER%
%VAULT_FOLDER_PATH%AssemblyInfo.cs
%VAULT_REPOS%
-1
%VAULT_USER%
2
Checkout the AssemblyInfo.cs file


Hope that helps...

Kim 10-20-2004 10:23 AM

Thank you - this code snippet is working perfectly


All times are GMT -5. The time now is 10:01 AM.


Copyright © 1999-2023 Kinook Software, Inc.