Hello,
I'm trying to write a simple script to get files from Vault.
So the script looks like this:
call :getFromVault $/_Vip6/source/readme.doc readme
call :getFromVault $/_Vip6/source/Compiler Compiler7
goto :EOF
:getFromVault
echo %2:>>"%LogPath%ErrorLOG.log"
%VaultCMD% -repository "Visual Prolog" get "%1" >> "%LogPath% ErrorLOG.log"
goto :EOF
but in the log file I get the following:
readme:
<vault>
<result success="yes" />
</vault>
VIP7Compiler:
<vault>
<error>
$/_Vip6/source/Compiler does not exist
</error>
<exception>
System.Exception: $/_Vip6/source/Compiler does not exist
at VaultCmdLineClient.VaultCmdLineClient.performGet(ArrayList strItemArray)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandGet(ArrayList strItemArray)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
</exception>
<result success="no" />
</vault>
It looks strange:
$/_Vip6/source/Compiler
directory exists just like
$/_Vip6/source/readme.doc
file
I don't understand the reason of such behaviour.
Existing directory/file fails getting
Moderator: SourceGear
Does the command successfully get $/_Vip6/source/readme.doc ?
Using the Vault account that you use to log in with the script, can you get $/_Vip6/source/Compiler with the GUI Client? If you're using folder security in Vault, does that account have access to that folder?
Using the Vault account that you use to log in with the script, can you get $/_Vip6/source/Compiler with the GUI Client? If you're using folder security in Vault, does that account have access to that folder?
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Yes,the command successfully get $/_Vip6/source/readme.doc .Does the command successfully get $/_Vip6/source/readme.doc ?
Yes, I can get $/_Vip6/source/Compiler with the GUI Client.Using the Vault account that you use to log in with the script, can you get $/_Vip6/source/Compiler with the GUI Client?
The account has access to that folder.If you're using folder security in Vault, does that account have access to that folder?
No it doesn't work:If you change the script to just get $/_Vip6/source/Compiler Compiler7
does that work?
Compiler7:
<vault>
<error>
$/_Vip6/source/Compiler does not exist
</error>
<exception>
System.Exception: $/_Vip6/source/Compiler does not exist
at VaultCmdLineClient.VaultCmdLineClient.performGet(ArrayList strItemArray)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandGet(ArrayList strItemArray)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
</exception>
<result success="no" />
</vault>