I'm not sure if vsslabel directly supports this, but I do know that you can accomplish this by using the <exec> task with ss.exe.
You might want to check out CruiseControl.NET, which does the same thing that you appear to be doing: applying a temp label, checking out the temp label, building, and on success change the temp label to the real version number. CruiseControl.NET shells out to ss.exe and displays all the command-line parameters it uses, so you might want to check that out for usage examples. I know it seems lame to use the <exec> task on ss.exe when there's a "pure" NAnt task to do the same thing, but ss.exe doesn't appear to be as buggy as VSS's COM API that the vss tasks use. For example, recursive gets of labeled versions is broken in VSS 6.0d through the COM API, even though it works properly for 6.0c. Oran -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Gomes Sent: Wednesday, November 10, 2004 6:25 AM To: [EMAIL PROTECTED] Subject: [Nant-users] Using <vsslabel> to label based on an existing label Not sure if this is possible with the <vsslabel> task, but here's the situation. Basically there are files in a project with an existing label of "Build". And I'd like to apply a new label to all files in a project that are currently labeled "Build" with a specific version label, such as "4.0.14.0". The documentation and source didn't give me a clear answer as to whether or not this is possible. If this is possible, would the syntax simply be something like this?: <vsslabel user="builduser" password="secret" dbpath="\\server\share\srcsafe.ini" path="$/Product 4.X" comment="" label="4.0.14.0" version="Build" /> Thanks Rob Gomes ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=ick _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
