nant task: delete label?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
ismangil
Posts: 197
Joined: Wed Jun 30, 2004 10:49 am
Location: Sheffield, UK
Contact:

nant task: delete label?

Post by ismangil » Wed May 04, 2005 7:20 am

Not sure where to discuss nant vault tasks I retrieved from vaultpub repository, hope this is the right forum.

I can see vaultlabel, but cannot find vaultdeletelabel. Is this right?

I know there is a deletelabel command from CLC, so I guess the API allows it.

The reason I need to delete label is when using cc.net, I want to label the files with the build number, and then get based on that label.

However if the build fails, then I need to delete that label, because I will need to apply the same label for the next build.

Another option is allowing the label command to "overwrite" (delete and reapply) labels.

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

Post by jeremy_sg » Wed May 04, 2005 1:40 pm

No, it doesn't exist, but you can use and <exec> task to call the CLC to do the delete, if you want.

Guest

Post by Guest » Wed May 04, 2005 3:11 pm

jeremy_sg wrote:No, it doesn't exist, but you can use and <exec> task to call the CLC to do the delete, if you want.
Got that far. Just a bit inelegant to have <exec> within my beautifully crafted <vault> tasks 8)

The code for vaultlabel seems straight forward. That combined with CLC source of deletelabel might be enough to push me to implement <vaultdeletelabel> ....

ismangil
Posts: 197
Joined: Wed Jun 30, 2004 10:49 am
Location: Sheffield, UK
Contact:

Post by ismangil » Thu May 05, 2005 8:41 am

I went ahead and implemented <vaultdeletelabel> (attached).

Hope it's useful to somebody else.
Attachments
VaultDeleteLabel.zip
(2.24 KiB) Downloaded 484 times

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

Post by jeremy_sg » Tue May 24, 2005 10:05 am

I've updated the nant tasks with deletelabel. Thanks!

Post Reply