|
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
-
- <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
- <title>Ant User Manual</title>
-
- </head>
- <body>
-
- <div align="center">
- <h1>SourceOffSite Tasks User Manual</h1>
-
- <div align="left">by<br>
- <br>
-
- <ul>
- <li><a href="mailto:jesse@cryptocard.com">Jesse Stockall</a> </li>
-
- </ul>
- Version 1.1 2002/01/23<br>
- <br>
-
- <hr width="100%" size="2">
- <h2>Contents</h2>
-
- <ul>
- <li><a href="#intro">Introduction</a> </li>
- <li><a href="#tasks">The Tasks</a> </li>
-
- </ul>
- <br>
-
- <h2><a name="intro">Introduction</a> </h2>
-
- <p>These tasks provide an interface to the <a href="http://msdn.microsoft.com/ssafe/default.asp" target="_top">
- Microsoft Visual SourceSafe</a> SCM via <a href="http://www.sourcegear.com">
- SourceGear's</a> <a href="http://sourcegear.com/sos/index.htm">SourceOffSite</a>
- product. SourceOffSite is an add-on to Microsoft's VSS, that
- allows remote development teams and tele-commuters that need
- fast and secure read/write access to a centralized SourceSafe
- database via any TCP/IP connection . SOS also provides Linux & Solaris
- clients. The <code> org.apache.tools.ant.taskdefs.optional.sos</code>
- package consists of a simple framework to support SOS functionality as well
- as some Ant tasks encapsulating frequently used SOS commands. Although it
- is possible to use these commands on the desktop, they were primarily intended
- to be used by automated build systems. These tasks have been tested with
- SourceOffSite version 3.5.1 connecting to VisualSourceSafe 6.0. The tasks
- have been tested with Linux, Solaris & Windows2000</p>
-
- <h2><a name="tasks">The Tasks</a> </h2>
-
- <table border="0" cellspacing="0" cellpadding="3">
- <tbody>
- <tr>
- <td><a href="#SOSGet">sosget</a> </td>
- <td>Retrieves a read-only copy of the specified project or file.</td>
- </tr>
- <tr>
- <td><a href="#SOSLabel"> soslabel</a> </td>
- <td>Assigns a label to the specified project.</td>
- </tr>
- <tr>
- <td><a href="#SOSCheckIn"> soscheckin</a> </td>
- <td>Updates VSS with changes made to a checked out file or project,
- and unlocks the VSS master copy.</td>
- </tr>
- <tr>
- <td><a href="#SOSCheckOut"> soscheckout</a> </td>
- <td>Retrieves a read-write copy of the specified project
- or file, locking the VSS master copy</td>
- </tr>
-
- </tbody>
- </table>
- <br>
-
- <hr width="100%" size="2">
- <h2>Task Descriptions</h2>
-
- <h2><a name="SOSGet"></a> SOSGet<br>
- </h2>
- <h3>Description</h3>
- Task to perform GET commands from Microsoft Visual SourceSafe via SOS<br>
- <h3>Parameters</h3>
- </div>
- </div>
-
- <table border="1">
- <tbody>
- <tr>
- <th>Attribute</th>
- <th>Values</th>
- <th>Required</th>
- </tr>
- <tr>
- <td>soscmddir</td>
- <td>Directory which contains soscmd(.exe) <br>
- soscmd(.exe) must be in the path if this is not specified</td>
- <td>No</td>
- </tr>
- <tr>
- <td>vssserverpath</td>
- <td>path to the srcsafe.ini - eg. \\server\vss\srcsafe.ini</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>sosserverpath</td>
- <td>address & port of the SOS server - eg. 192.168.0.1:8888</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>projectpath</td>
- <td>SourceSafe project path without the "$"</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>file</td>
- <td>Filename to act upon<br>
- If no file is specified then act upon the project</td>
- <td>No</td>
- </tr>
- <tr>
- <td>username</td>
- <td>SourceSafe username</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>password</td>
- <td>SourceSafe password</td>
- <td>No</td>
- </tr>
- <tr>
- <td>localpath</td>
- <td>Override the working directory and get to the specified path</td>
- <td>No</td>
- </tr>
- <tr>
- <td>soshome</td>
- <td>The path to the SourceOffSite home directory</td>
- <td>No</td>
- </tr>
- <tr>
- <td>nocompression</td>
- <td>true or false - disable compression</td>
- <td>No</td>
- </tr>
- <tr>
- <td>recursive</td>
- <td>true or false - Only works with the GetProject command</td>
- <td>No</td>
- </tr>
- <tr>
- <td>version</td>
- <td>a version number to get - Only works with the GetFile command</td>
- <td>No</td>
- </tr>
- <tr>
- <td>label</td>
- <td>a label version to get - Only works with the GetProject command</td>
- <td>No</td>
- </tr>
- <tr>
- <td>nocache</td>
- <td>true or false - Only needed if SOSHOME is set as an enviroment variable</td>
- <td>No</td>
- </tr>
- <tr>
- <td>verbose</td>
- <td>true or false - Status messages are displayed</td>
- <td>No</td>
- </tr>
- </tbody>
- </table>
-
- <h3>Example</h3>
- <small><sosget </small><small>
- verbose="true"</small><br>
- <small>
- recursive="true"</small><br>
- <small>
- login="build"</small><br>
- <small>
- pass="build"</small><br>
- <small>
- localpath="tmp"</small><br>
- <small>
- projectpath="/SourceRoot/project1"</small><small><br>
- </small><small><small>
- <big> sosserverpath="192.168.10.6:8888"</big></small></small><br>
- <small>
- vssserverpath="d:\vss\srcsafe.ini"/></small><br>
- <small> <br>
- Connects to a SourceOffsite server on </small><small>192.168.10.6:8888</small><small>
- with build,build as the username & password</small><small> . The
- SourceSafe database resides on the same box as the SOS server & the
- VSS database is at "d:\vss\srcsafe.ini"</small><br>
- <small>Does a recursive GetProject on $</small><small>/SourceRoot/project1</small><small>
- , using tmp as the working directory.</small><br>
- <br>
-
- <hr width="100%" size="2">
- <h2><a name="SOSLabel"></a> SOSLabel</h2>
-
- <h3>Description</h3>
- Task to perform Label commands from Microsoft Visual SourceSafe via SOS<br>
- <h3>Parameters</h3>
-
- <table border="1">
- <tr>
- <th>Attribute</th>
- <th>Values</th>
- <th>Required</th>
- </tr>
- <tr>
- <td>soscmddir</td>
- <td>Directory which contains soscmd(.exe) <br>
- soscmd(.exe) must be in the path if this is not specified</td>
- <td>No</td>
- </tr>
- <tr>
- <td>vssserverpath</td>
- <td>path to the srcsafe.ini - eg. \\server\vss\srcsafe.ini</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>sosserverpath</td>
- <td>address and port of the SOS server - eg. 192.168.0.1:8888</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>projectpath</td>
- <td>SourceSafe project path without the "$"</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>username</td>
- <td>SourceSafe username</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>password</td>
- <td>SourceSafe password</td>
- <td>No</td>
- </tr>
- <tr>
- <td>label</td>
- <td>The label to apply to a project</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>comment</td>
- <td>A comment to be applied to all files being labeled</td>
- <td>No</td>
- </tr>
- <tr>
- <td>verbose</td>
- <td>true or false - Status messages are displayed</td>
- <td>No</td>
- </tr>
- </tbody>
- </table>
-
- <h3>Example</h3>
- <small> <soslabel </small><small>
- login="build"</small><small><br>
- </small><small>
- pass="build"</small><small><br>
- </small><small>
- label="test
- label"</small><small><br>
- </small><small>
- projectpath="</small><small>
- /SourceRoot/project1</small><small> "</small><small><br>
- </small><small>
- sosserverpath="192.168.10.6:8888"</small><small><br>
- </small><small>
- vssserverpath="d:\vss\srcsafe.ini"/></small><small><br>
- </small><br>
- <small> Connects to a SourceOffsite server on </small><small>192.168.10.6:8888
- </small><small>with build,build as the username & password</small><small>
- . </small><small> The SourceSafe database resides on the same box
- as the SOS server & the VSS database is at "d:\vss\srcsafe.ini"</small><br>
- <small>Labels the $</small><small>/SourceRoot/project1 project with
- </small><small> "test label".</small><br>
- <br>
-
- <hr width="100%" size="2"><br>
-
- <h2><a name="SOSCheckIn"></a> SOSCheckIn</h2>
-
- <h3>Description</h3>
- Task to perform CheckIn commands from a Microsoft Visual Source Safe via SOS<br>
- <h3>Parameters</h3>
- <table border="1">
- <tbody>
- <tr>
- <th>Attribute</th>
- <th>Values</th>
- <th>Required</th>
- </tr>
- <tr>
- <td>soscmddir</td>
- <td>Directory which contains soscmd(.exe) <br>
- soscmd(.exe) must be in the path if this is not specified</td>
- <td>No</td>
- </tr>
- <tr>
- <td>vssserverpath</td>
- <td>path to the srcsafe.ini - eg. \\server\vss\srcsafe.ini</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>sosserverpath</td>
- <td>address and port of the SOS server - eg. 192.168.0.1:8888</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>projectpath</td>
- <td>SourceSafe project path without the "$"</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>file</td>
- <td>Filename to act upon<br> If no file is specified then act upon the project</td>
- <td>No</td>
- </tr>
- <tr>
- <td>username</td>
- <td>SourceSafe username</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>password</td>
- <td>SourceSafe password</td>
- <td>No</td>
- </tr>
- <tr>
- <td>localpath</td>
- <td>Override the working directory and get to the specified path</td>
- <td>No</td>
- </tr>
- <tr>
- <td>soshome</td>
- <td>The path to the SourceOffSite home directory</td>
- <td>No</td>
- </tr>
- <tr>
- <td>nocompression</td>
- <td>true or false - disable compression</td>
- <td>No</td>
- </tr>
- <tr>
- <td>recursive</td>
- <td>true or false - Only works with the CheckOutProject command</td>
- <td>No</td>
- </tr>
- <tr>
- <td>nocache</td>
- <td>true or false - Only needed if SOSHOME is set as an enviroment variable</td>
- <td>No</td>
- </tr>
- <tr>
- <td>verbose</td>
- <td>true or false - Status messages are displayed</td>
- <td>No</td>
- </tr>
- <td>comment</td>
- <td>A comment to be applied to all files being checked in</td>
- <td>No</td>
- </tr>
- </tbody>
- </table>
-
- <h3>Example</h3>
- <small><soscheckin
- </small><small> login="build"</small><small><br>
- </small><small>
-
- pass="build"</small><small><br>
- </small><small>
-
- </small><small>file="foobar.txt"<br>
-
- verbose="true"</small><br>
- <small>
-
- </small><small>comment="comment abc"</small><small><br>
- </small><small>
-
- projectpath="/SourceRoot/project1"</small><small><br>
- </small><small>
-
- sosserverpath="server1:8888"</small><small><br>
- </small><small>
-
- vssserverpath="\\server2\vss\srcsafe.ini"/></small><small><br>
- </small><small><br>
- Connects to a SourceOffsite server on </small><small>server1:8888</small><small>
- with build,build as the username & password</small><small> . </small><small>
- The SourceSafe database resides on a different box (server2)
- & the VSS database is on a share called "vss"</small><br>
- <small>Checks-in only the "foobar.txt" file adding a comment of "comment
- abc"</small><small> . Extra status messages will be displayed on screen.</small><br>
- <br>
-
- <hr width="100%" size="2">
- <h2><a name="SOSCheckOut"></a> SOSCheckOut</h2>
-
- <h3>Description</h3>
- Task to perform CheckOut commands from a Microsoft Visual Source Safe via SOS<br>
-
- <h3>Parameters</h3>
-
- <table border="1">
- <tbody>
- <tr>
- <th>Attribute</th>
- <th>Values</th>
- <th>Required</th>
- </tr>
- <tr>
- <td>soscmddir</td>
- <td>Directory which contains soscmd(.exe) <br>
- soscmd(.exe) must be in the path if this is not specified</td>
- <td>No</td>
- </tr>
- <tr>
- <td>vssserverpath</td>
- <td>path to the srcsafe.ini - eg. \\server\vss\srcsafe.ini</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>sosserverpath</td>
- <td>address and port of the SOS server - eg. 192.168.0.1:8888</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>projectpath</td>
- <td>SourceSafe project path without the "$"</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>file</td>
- <td>Filename to act upon<br> If no file is specified then act upon the project</td>
- <td>No</td>
- </tr>
- <tr>
- <td>username</td>
- <td>SourceSafe username</td>
- <td>Yes</td>
- </tr>
- <tr>
- <td>password</td>
- <td>SourceSafe password</td>
- <td>No</td>
- </tr>
- <tr>
- <td>localpath</td>
- <td>Override the working directory and get to the specified path</td>
- <td>No</td>
- </tr>
- <tr>
- <td>soshome</td>
- <td>The path to the SourceOffSite home directory</td>
- <td>No</td>
- </tr>
- <tr>
- <td>nocompression</td>
- <td>true or false - disable compression</td>
- <td>No</td>
- </tr>
- <tr>
- <td>recursive</td>
- <td>true or false - Only works with the CheckOutProject command</td>
- <td>No</td>
- </tr>
- <tr>
- <td>nocache</td>
- <td>true or false - Only needed if SOSHOME is set as an enviroment variable</td>
- <td>No</td>
- </tr>
- <tr>
- <td>verbose</td>
- <td>true or false - Status messages are displayed</td>
- <td>No</td>
- </tr>
- </tbody>
- </table>
- <br>
-
- <h3>Example</h3>
- <small><soscheckout </small><small> soscmddir="/usr/bin"</small><small><br>
- </small><small>
-
- verbose="true"</small><small><br>
- </small><small>
-
- login="build"</small><small><br>
- </small><small>
-
- pass="build"</small><small><br>
- </small><small>
-
- ProjectPath="</small><small> /SourceRoot/project1</small><small>"</small><small><br>
- </small><small>
-
- sosserverpath="192.168.10.6:8888"</small><small><br>
- </small><small>
-
- vssserverpath="\\server2\vss\srcsafe.ini"/><small><br>
- </small></small><br>
- <small>Connects to a SourceOffsite server on </small><small>server1:8888</small><small>
- with build,build as the username & password</small><small> . </small><small>
- The SourceSafe database resides on a different box (server2)
- & the VSS database is on a share called "vss"</small><br>
- <small>Checks-out "project1" </small><small>Only the "project1" directory
- will be locked as the recursive option was not set. Extra status messages
- will be displayed on screen.</small><small> The soscmd(.exe) file to be
- used resides in /usr/bin</small><br>
- <small><br>
- </small>
- <hr width="100%" size="2"><small><br>
- </small><br>
- <br>
- <br>
- <br>
- <br>
-
- </body>
- </html>
|