Hi,

 

Does anybody tried to use the Vault Nant task to retrieve a particular labeled source?

I was trying the below task, but I get an exception. I should ask this to the vault people who provided this package, but I don't have their contact information.

 

 

 

<!-- - Load custom vault tasks. See for the latest documentation on the tasks:

            http://vaultpub.sourcegear.com/build/latest/doc/   -->

 < loadtasks>

      < fileset>

        < include name="NAnt.VaultTasks.dll " />

      </ fileset>

 </ loadtasks>

 

< if test ="${property::exists('source.label')}">

      < echo message=" Using Vault label ${source.label}" />

      < vaultgetbylabel url="${source.server }"

        username= "${source.username}"

        password= "${source.password}"

        repository= "${source.repository}"

        path= "${solution.sourcepath}"

        destination= "${source.dir}"

        labelstring= "${source.label}"/>

</ if>

 

 

refresh-source:

 

     [echo] Using Vault label 1.0.1.2

[vaultgetbylabel] Vault:  Retrieving repository structure information from the s

erver...

[vaultgetbylabel] Vault:  Saving repository information to disk...

[vaultgetbylabel] Vault:  Working

[vaultgetbylabel] Vault:  Requesting files...

[vaultgetbylabel] Vault:  Downloading files...

[vaultgetbylabel] Vault:  Updating local files...

[vaultgetbylabel] Vault:  Saving repository information to disk...

[vaultgetbylabel] Vault:  Working

 

BUILD FAILED

 

INTERNAL ERROR

 

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)

   at VaultClientOperationsLib.ClientInstance.GetByLabelToNonWorkingFolder_GetDa

ta(VaultClientFile[] files, Boolean overwrite, MakeWritableType makeWritable, Se

tFileTimeType setFileTime, String ancestorFullPath, String ancestorDiskPath, Ove

rwritePrompt PromptData, Int64 labelID, String currentPathToLabelItem, String la

belSubItemPath, Boolean isLabelGetForSingleFile)

   at VaultClientOperationsLib.ClientInstance.GetByLabelToNonWorkingFolder_GetDa

ta(VaultClientFolder folder, Boolean recursive, Boolean overwrite, MakeWritableT

ype makeWritable, SetFileTimeType setFileTime, String destinationDiskPath, Overw

ritePrompt PromptData, Int64 labelID, String currentPathToLabelItem, String labe

lSubItemPath)

   at VaultClientOperationsLib.ClientInstance.GetLabeledFolderToNonWorkingFolder

(VaultClientFolder vcRepFolder, String strLabelName, String strLabelPath, String

& strLocalDir, Boolean bRecursive)

   at NAnt.Contrib.Tasks.SourceGearVault.vaultgetbylabel.GetByLabel(String fileN

ame) in C:\temp\vaultnant2.0\latest\src\VaultGetByLabel.cs:line 141

   at NAnt.Contrib.Tasks.SourceGearVault.vaultgetbylabel.ExecuteTask() in C:\tem

p\vaultnant2.0\latest\src\VaultGetByLabel.cs:line 110

   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.Tasks.CallTask.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()

 

Please send bug report to nant-developers@lists.sourceforge.net .

 

Total time: 3.3 seconds.

 

Reply via email to