NAnt trouble with checkin
Moderator: SourceGear
-
- Posts: 4
- Joined: Fri Jan 06, 2006 10:53 pm
NAnt trouble with checkin
I am using NAnt and Vault 3.0.6. I want to checkin an entire project folder at once and have so far been unsucessful. Is this possible?
NAnt task:
<vaultcheckin url:="http://localhost" username="admin" password="admin" repository="Default Repository" path="$/BuildingSolution" diskfile="c:\projects\BuildingSolution"
when I execute NAnt I get the following error:
The folder $/BuildingSolution could not be checked in.
The project remains checked out in the Vault client. I can use the exact same task but specify a specific file and it checks in fine.
Thanks in advance!
NAnt task:
<vaultcheckin url:="http://localhost" username="admin" password="admin" repository="Default Repository" path="$/BuildingSolution" diskfile="c:\projects\BuildingSolution"
when I execute NAnt I get the following error:
The folder $/BuildingSolution could not be checked in.
The project remains checked out in the Vault client. I can use the exact same task but specify a specific file and it checks in fine.
Thanks in advance!
-
- Posts: 4
- Joined: Fri Jan 06, 2006 10:53 pm
-
- Posts: 4
- Joined: Fri Jan 06, 2006 10:53 pm
Only if you need to use a non-working directory. If you leave off the diskfile attribute, Vault will attempt to checkin the file using the user's working directory, which should work fine.
So using your example:
user: admin
Repository Path: $/BuildingSolution
disk path: c:\projects\BuildingSolution
If you set the admin user's working for $/BuildingSolution to c:\projects\BuildingSolution and remove the diskfile attribute from your nant checkin, it should work.
So using your example:
user: admin
Repository Path: $/BuildingSolution
disk path: c:\projects\BuildingSolution
If you set the admin user's working for $/BuildingSolution to c:\projects\BuildingSolution and remove the diskfile attribute from your nant checkin, it should work.
Ian Olsen
SourceGear
SourceGear
-
- Posts: 4
- Joined: Fri Jan 06, 2006 10:53 pm
There's no NAnt task to set a working folder, but you can do it with the command-line client (from NAnt) if you need to automate it.
The vault command looks like this:
So to run this from NAnt you'd do something like this:
The vault command looks like this:
Code: Select all
vault setworkingfolder $/BuildingSolution c:\projects\BuildingSolution -user admin -password admin -host localhost -repository "Default Repository"
Code: Select all
<exec workingdir="c:\projects\BuildingSolution" program="C:\Program Files\SourceGear\Vault Client\vault.exe" >
<arg line="setworkingfolder $/BuildingSolution c:\projects\BuildingSolution -user admin -password admin -host localhost -repository "Default Repository"" />
</exec>
Ian Olsen
SourceGear
SourceGear