Hi,
I am trying to pull out a specifically labelled version of code from Vault using v3.5.2 of the Vault NAnt tasks.
Let's say I have a structure a bit like:
Folder 1-->
Folder 2-->
Folder 3
Label 'label1' was applied to Folder 1. Thus when I select 'Show Labels...' on Folder 2 in the Vault client, the icon shows an up arrow to indicate that the 'label1' cascades down from a higher level.
However, at a certain point in my build script, I only want the source that is rippling down from folder2. (Let's say that folder1 simply contains stuff I'm not presently interested in).
My NAnt script is something like this:
<vaultgetbylabel url="http://server/vaultservice"
labelstring="label1"
username="*"
password="*"
repository="repo"
path="$/Development/folder1/folder2"
destination="C:/folder2"/>
This scriptlet fails (with a 'GetLatestVersionFailedException', which seems a bit inappropriate). If I change the path to '$/Development/folder1' it works. Ergo it seems that if you do a getbylabel you have to specifically do so on the folder from which the label is cascading down.
Can someone confirm that this is by design?
Question About <vaultgetbylabel> NAnt task
Moderator: SourceGear