A base class for creating tasks for executing commands on Visual SourceSafe.
The class extends the 'exec' task as it operates by executing the ss.exe program
supplied with SourceSafe. By default the task expects ss.exe to be in the path,
you can override this be specifying the ssdir attribute.
This class provides set and get methods for 'login' and 'vsspath' attributes. It
also contains constants for the flags that can be passed to SS.
Inner Class :public static class CurrentModUpdated extends EnumeratedAttribute
Each sub-class must implemnt this method and return the constructed
command line to be executed. It is up to the sub-task to determine the
required attrubutes and their order.
The Constructed command line.
Executes the task.
Builds a command line to execute ss.exe and then calls Exec's run method
to execute the command line.
throws: BuildException - if the command cannot execute.
Gets the value set for the FileTimeStamp.
if it equals "current" then we return -GTC
if it equals "modified" then we return -GTM
if it equals "updated" then we return -GTU
otherwise we return -GTC
The default file time flag, if not set.
Gets the version string. Returns the first specified of version "-V1.0",
date "-Vd01.01.01", label "-Vlbuild1".
An empty string if a version, date and label are not set.
Gets the version string. This can be to-from "-VLbuild2~Lbuild1", from
"~Lbuild1" or to "-VLbuild2".
An empty string if neither tolabel or fromlabel are set.
Login to use when accessing VSS, formatted as "username,password".
You can omit the password if your database is not password protected.
If you have a password and omit it, Ant will hang.
Parameters: vssLogin - The login string to use.
setServerpath
final public void setServerpath(String serverPath)(Code)
Directory where srssafe.ini resides.
Parameters: serverPath - The path to the VSS server.