I have a FinalBuilder project that create a Label in starteam and after, apply the label to a subfolder of the starteam project.
It runs correctly but I was unable to apply the revision label to the folder itself.<
How is the configuration of the ST Apply Label Action, to apply the label to the folder too?
Thank you.
Hi Santiago,
The FinalBuilder apply label action uses the “apply-label” command line option of stcmd.exe
I’m not a StarTeam expert, but I thought you’d be able to apply the label to a folder by specifying the folder hierarchy and * in the filespec. I’m not sure on this though - if you’re able to tell me the exact command that you need to call stcmd.exe with, I can make sure the action supports this.
cheers,
tate.
Hi Tate,
Thanks for your reply.
I think that was one of the test I made, but i’m not sure.
This is the command that I’m running in the project:
With this command, all the files in Subfolder_2 are labeled with the label, but not the folder.
In Starteam interface, when you apply a label to folder, the dialog shows three options, as you can see in attached image.
Any idea?
Thanks in advance,
Santi.
can you try running that same command line manually but without the “*” at the end and see if that works?
I’ve do it with the same result; the label is only applied to files, not folders.
I’ve tried some variations too, like apply label from SubFolder_1, changing the filter, …, but the result is always the same.
Regards,
Santi.
Hi Santi,
It looks like you need to create a “Build Label” (with the Create Label action) and when you apply that it will apply to the folder too. I’m guessing here though - maybe it’s best to ask a StarTeam expert?
http://info.borland.com/techpubs/starteam/2005R2/en/user.pdf
If you have a look on page 309 in that pdf file it describes the -b option on the create label command as:
Specifies that the new label is a build label. Without either -b or
-r, the label is a view label. View labels (and a build label is a
special type of view label) are immediately and automatically
applied to every folder, file, change request, task, and topic in
the view.
So, maybe experiment a bit with the type of label you create and see if you can get something going.
hth.
.t8