I've used this VSS label task invocation successfully: <vsslabel vsspath="/Development Code/myProject/server" ssdir="${vssRoot}\win32" label="${buildName}" serverPath="${vssRoot}" />
...where vssRoot is the UNC path that points to the directory containing the appropriate srcsafe.ini (no slash at the end). I found it very important to supply the ssdir directory to allow ant to know where ss.exe is located. -----Original Message----- From: Ron Coutts [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 4:02 PM To: 'Ant Users List' (E-mail) Subject: Problem with Visual SourceSafe task The VSS task does not seem to work properly. I'm getting the error 'No VSS database (srcsafe.ini) found. Use the SSDIR environment variable or run netsetup'. Currently I'm using the VSS command line interface from Perl scripts to do gets, and in those scripts the SSDIR environment variable must be set. For some reason, the VSS task is not setting this environment variable. What am I doing wrong? Also, there seems to be an inconsistency between the VSS task, and VSS itself. In my working scripts, I set 'SSDIR=\\private1\midas$', i.e. to the directory where the srcsafe.ini file is located. However in the VSS task, the ssdir attribute is supposed to refer to the directory where the ss.exe file is located. Is this correct, or a documentation typo? Thanks in advance for any help provided. Ron P.S. Here's the build file I'm using: <project name="VssTest" default="get"> <target name="get"> <vssget localPath="d:\delme" recursive="false" login="userid,password" vsspath="/MidasWksp" writable="false" ssdir="C:\Program Files\Microsoft Visual Studio\Common\VSS\win32" serverPath="\\private1\midas$" /> </target> </project> And here's the Ant output: Buildfile: build2.xml get: [vssget] No VSS database (srcsafe.ini) found. Use the SSDIR environment variable or run netsetup. BUILD FAILED D:\midasroot\Developers\RonC\AntTests\VssTest\build2.xml:11: Failed executing: "C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\ss " Get $/MidasWksp -GLD:\delme -I- -YAutoUser,adrs Total time: 1 second -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ------------------------------------------------------------------------------ This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>