problem with vaultcheckout Nant task

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
dnespoli
Posts: 7
Joined: Tue Feb 22, 2005 2:50 pm

problem with vaultcheckout Nant task

Post by dnespoli » Mon May 30, 2005 1:03 am

I have a nant script which does the following:

1. checkout a file
2. get the latest version of a file to a directory specified with the 'destination' tag
3. alter the file (rev version number)
4. checkin the file with a 'diskfile' option specified

The first time I run this script it works great. The second time it fails. If I reset the working dir in the vault client between runs it works fine. It seems that the checkin command is breaking the working directory. If I just use the working directory then there is no problem as well.

I guess I need on of the following things within nant:
1. for the working directory to be correctly reverted after checkin completes
2. a way to get/set the working directory for a project (would create other problems)
3. a way to specify a working directory in the checkout file command (and others?)

Please let me know you thoughts on how I can move forward.

-Dave

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon May 30, 2005 9:38 pm

If you want to reuse the same working folder in multiple runs, you must not specify destpath in the get, or the local disk path in the checkin. If the working folder is set, these options are not compatible.

Locked