SOSLabel (Apache Ant API)
Class SOSLabel








public class SOSLabel
extends SOS

Labels Visual SourceSafe files via a SourceOffSite server.

The following attributes are interpreted:
Attribute Values Required
soscmddir Directory which contains soscmd(.exe)
soscmd(.exe) must be in the path if this is not specified
vssserverpath path to the srcsafe.ini - eg. \\server\vss\srcsafe.ini Yes
sosserverpath address and port of the SOS server - eg. Yes
projectpath SourceSafe project path without the "$" Yes
username SourceSafe username Yes
password SourceSafe password No
label The label to apply to a project Yes
comment A comment to be applied to all files being labeled No
verbose true or false - Status messages are displayed No

Jesse Stockall

Field Summary
Fields inherited from class
description, location, target, taskName, taskType, wrapper
Fields inherited from class
Constructor Summary
Method Summary
protected  Commandline buildCmdLine()
          Build the command line
AddLabel required parameters: -server -name -password -database -project -label
AddLabel optional parameters: -verbose -comment
 void execute()
          Executes the task.
Methods inherited from class
getComment, getFilename, getLabel, getLocalPath, getNoCache, getNoCompress, getPassword, getProjectPath, getRecursive, getSosCommand, getSosHome, getSosServerPath, getUsername, getVerbose, getVersion, getVssServerPath, run, setComment, setFile, setLabel, setLocalPath, setNoCache, setNoCompress, setPassword, setProjectPath, setRecursive, setSosCmd, setSosHome, setSosServerPath, setUsername, setVerbose, setVersion, setVssServerPath
Methods inherited from class
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
Methods inherited from class
getProject, setProject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public SOSLabel()
Method Detail


public void execute()
             throws BuildException
Executes the task.
Builds a command line to execute soscmd and then calls Exec's run method to execute the command line.

execute in class Task
BuildException - Description of Exception


protected Commandline buildCmdLine()
Build the command line
AddLabel required parameters: -server -name -password -database -project -label
AddLabel optional parameters: -verbose -comment

Commandline the generated command to be executed

Copyright 2000-2002 Apache Software Foundation. All Rights Reserved.