NantContrib Help with 3.5
Moderator: SourceGear
NantContrib Help with 3.5
I realize this isn't a support forum for NantContrib, however, we've had a rash of issues with our build since moving to Vault 3.5. The latest appears to be related to NantContrib. I don't believe NantContrib binds directly to VaultClientOperationsLib but I could be wrong. Any advice is greatly appreciated....
VaultClientOperationsLib.GetLatestVersionFailedException: Exception of type Vaul
tClientOperationsLib.GetLatestVersionFailedException was thrown.
at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo
[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType
merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, Boolean flat, Str
ing ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String cur
rentPathToLabelItem, Int64 labelID, Boolean isRetry, Boolean isGetByDisplayVersi
on)
at VaultClientOperationsLib.ClientInstance.Get(VaultClientFile[] files, Boole
an forceLatest, MakeWritableType makeWritable, SetFileTimeType setFileTime, Merg
eType merge, OverwritePrompt PromptData)
at VaultClientOperationsLib.ClientInstance.Get(VaultClientFile file, Boolean
forceLatest, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeTy
pe merge, OverwritePrompt PromptData)
at NAnt.Contrib.Tasks.SourceGearVault.vaultcheckout.CheckOut(String fileName)
at NAnt.Contrib.Tasks.SourceGearVault.vaultcheckout.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.TaskContainer.ExecuteChildTasks()
at NAnt.Core.Tasks.LoopTask.ExecuteChildTasks()
at NAnt.Core.Tasks.LoopTask.DoWork(String[] propVals)
at NAnt.Core.Tasks.LoopTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Tasks.CallTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.TaskContainer.ExecuteChildTasks()
at NAnt.Core.Tasks.IfTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
VaultClientOperationsLib.GetLatestVersionFailedException: Exception of type Vaul
tClientOperationsLib.GetLatestVersionFailedException was thrown.
at VaultClientOperationsLib.ClientInstance.ProcessGetFileRequests(GetFileInfo
[] infos, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeType
merge, Boolean updateHiddenFilesOnly, String ancestorFullPath, Boolean flat, Str
ing ancestorDiskPath, OverwritePrompt PromptData, Boolean isLabelGet, String cur
rentPathToLabelItem, Int64 labelID, Boolean isRetry, Boolean isGetByDisplayVersi
on)
at VaultClientOperationsLib.ClientInstance.Get(VaultClientFile[] files, Boole
an forceLatest, MakeWritableType makeWritable, SetFileTimeType setFileTime, Merg
eType merge, OverwritePrompt PromptData)
at VaultClientOperationsLib.ClientInstance.Get(VaultClientFile file, Boolean
forceLatest, MakeWritableType makeWritable, SetFileTimeType setFileTime, MergeTy
pe merge, OverwritePrompt PromptData)
at NAnt.Contrib.Tasks.SourceGearVault.vaultcheckout.CheckOut(String fileName)
at NAnt.Contrib.Tasks.SourceGearVault.vaultcheckout.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.TaskContainer.ExecuteChildTasks()
at NAnt.Core.Tasks.LoopTask.ExecuteChildTasks()
at NAnt.Core.Tasks.LoopTask.DoWork(String[] propVals)
at NAnt.Core.Tasks.LoopTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Tasks.CallTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.TaskContainer.ExecuteChildTasks()
at NAnt.Core.Tasks.IfTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
Vault's NAnt tasks are not distributed with the NAntContrib tasks, they're just in the NAnt.Contrib.Tasks namespace. That's why you see that in your stack trace, it has nothing to do with any interaction with the NAntContrib tasks. So this problem shouldn't have anything to do with NAntContrib.
Ian Olsen
SourceGear
SourceGear
Heh sorry, I guess an actual suggestion for your problem would have been helpful.
If you enable nant verbose logging the Vault task will spit out the message that goes along with the get failure. The -l switch with a file turns on logging and the -v makes it verbose, e.g.
If you enable nant verbose logging the Vault task will spit out the message that goes along with the get failure. The -l switch with a file turns on logging and the -v makes it verbose, e.g.
Code: Select all
nant.exe [whatever you have now] -l:mylogfile.txt -v
Ian Olsen
SourceGear
SourceGear
If you have verbose turned on, there should be a message just above the stack trace indicating why the get failed, in a format similar to this:
Code: Select all
[vaultcheckout] Vault: ...lots of ordinary messages...
[vaultcheckout] Vault: failure message here
Exception stack trace here
Ian Olsen
SourceGear
SourceGear