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.
nant task: delete label?
Moderator: SourceGear
Got that far. Just a bit inelegant to have <exec> within my beautifully crafted <vault> tasksjeremy_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.
The code for vaultlabel seems straight forward. That combined with CLC source of deletelabel might be enough to push me to implement <vaultdeletelabel> ....
I went ahead and implemented <vaultdeletelabel> (attached).
Hope it's useful to somebody else.
Hope it's useful to somebody else.
- Attachments
-
- VaultDeleteLabel.zip
- (2.24 KiB) Downloaded 484 times