PDA

View Full Version : Get the latest or from a label in VSS


abcdetech
01-11-2010, 01:08 PM
I have VSS as source control.

In my script I want to have a switch/macro - let's say LabelOrNot.


If LabelOrNot = true

my project in VSS will be labelad with %VSSLabel% and next step would Get from L%VSSLabel%


If LabelOrNot = false

My project will not be labeled and I would get the latest source code.


I have no problems with Labeling. But the second step where I have to specify a "Version To Operate On" - it will be either %VSSLabel" or BLANK - here I have a problem.

your help is appreciated.

kinook
01-11-2010, 01:45 PM
[vbld_IIf(%LabelOrNot%, "%VSSLabel%", "")]

http://www.kinook.com/VisBuildPro/Manual/sysscriptmisc.htm