Description
Task to perform LABEL commands to Microsoft Visual SourceSafe.
Assigns a label to the specified version or current version of a file or project.
Parameters
Attribute | Description | Required |
vsspath | SourceSafe path which specifies the project/file(s) you wish to perform the action on. You should not specify the leading dollar-sign - it is prepended by Ant automatically. | Yes |
login | username[,password] - The username and password needed to get access to VSS. Note that you may need to specify both (if you have a password) - Ant/VSS will hang if you leave the password out and VSS does not accept login without a password. | No |
ssdir | directory where ss.exe resides. By default the task expects it to be in the PATH. | No |
serverPath | directory where srssafe.ini resides. | No |
label | A label to apply to the hierarchy | Yes |
version | An existing file or project version to label. By default the current version is labelled. | No |
comment | The comment to use for this label. Empty or '-' for no comment. | No |
autoresponse What to respond with (sets the -I option). By default, -I- is used; values of Y or N will be appended to this. No
Examples
<vsslabel vsspath="/source/aProject" login="me,mypassword" label="Release1"/>Labels the current version of the VSS project $/source/aProject with the label Release1 using the username me and the password mypassword.
<vsslabel vsspath="/source/aProject/myfile.txt" version="4" label="1.03.004"/>Labels version 4 of the VSS file $/source/aProject/myfile.txt with the label 1.03.004. If this version already has a label, the operation (and the build) will fail.