You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

sos.html 14 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. <!DOCTYPE html>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. https://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <html lang="en">
  17. <head>
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>SOS Tasks</title>
  20. </head>
  21. <body>
  22. <h1>SourceOffSite Tasks User Manual</h1>
  23. <p>by</p>
  24. <ul>
  25. <li><a href="mailto:jesse@cryptocard.com">Jesse Stockall</a></li>
  26. </ul>
  27. <p>Version 1.1 2002/01/23</p>
  28. <hr/>
  29. <h2>Contents</h2>
  30. <ul>
  31. <li><a href="#intro">Introduction</a></li>
  32. <li><a href="#tasks">The Tasks</a></li>
  33. </ul>
  34. <h2 id="intro">Introduction</h2>
  35. <p>These tasks provide an interface to
  36. the <a href="https://msdn.microsoft.com/en-us/library/3h0544kx(v=vs.80).aspx"
  37. target="_top">Microsoft Visual SourceSafe</a> SCM via <a href="https://sourcegear.com"
  38. target="_top">SourceGear's</a> <a href="https://sourcegear.com/sos/" target="_top">SourceOffSite</a>
  39. product. SourceOffSite is an add-on to Microsoft's VSS, that allows remote development teams and
  40. tele-commuters that need fast and secure read/write access to a centralized SourceSafe database via
  41. any TCP/IP connection. SOS provides Linux, Solaris &amp; Windows
  42. clients. The <code class="code">org.apache.tools.ant.taskdefs.optional.sos</code> package consists
  43. of a simple framework to support SOS functionality as well as some Apache Ant tasks encapsulating
  44. frequently used SOS commands. Although it is possible to use these commands on the desktop, they
  45. were primarily intended to be used by automated build systems. These tasks have been tested with
  46. SourceOffSite version 3.5.1 connecting to VisualSourceSafe 6.0. The tasks have been tested with
  47. Linux, Solaris &amp; Windows 2000.</p>
  48. <h2 id="tasks">The Tasks</h2>
  49. <table>
  50. <tbody>
  51. <tr>
  52. <td><a href="#SOSGet">sosget</a></td>
  53. <td>Retrieves a read-only copy of the specified project or file.</td>
  54. </tr>
  55. <tr>
  56. <td><a href="#SOSLabel">soslabel</a></td>
  57. <td>Assigns a label to the specified project.</td>
  58. </tr>
  59. <tr>
  60. <td><a href="#SOSCheckIn">soscheckin</a></td>
  61. <td>Updates VSS with changes made to a checked out file or project,
  62. and unlocks the VSS master copy.</td>
  63. </tr>
  64. <tr>
  65. <td><a href="#SOSCheckOut">soscheckout</a></td>
  66. <td>Retrieves a read-write copy of the specified project or file, locking the VSS master
  67. copy</td>
  68. </tr>
  69. </tbody>
  70. </table>
  71. <hr/>
  72. <h2>Task Descriptions</h2>
  73. <h2 id="SOSGet">SOSGet</h2>
  74. <h3>Description</h3>
  75. <p>Task to perform <var>Get</var> commands with SOS</p>
  76. <h3>Parameters</h3>
  77. <table class="attr">
  78. <thead>
  79. <tr>
  80. <th scope="col">Attribute</th>
  81. <th scope="col">Values</th>
  82. <th scope="col">Required</th>
  83. </tr>
  84. </thead>
  85. <tbody>
  86. <tr>
  87. <td>soscmd</td>
  88. <td>Directory which contains <kbd>soscmd(.exe)</kbd></td>
  89. <td>No; by default, the executable must be in the path</td>
  90. </tr>
  91. <tr>
  92. <td>vssserverpath</td>
  93. <td>path to the <samp>srcsafe.ini</samp>&mdash;eg. <samp>\\server\vss\srcsafe.ini</samp></td>
  94. <td>Yes</td>
  95. </tr>
  96. <tr>
  97. <td>sosserverpath</td>
  98. <td>address &amp; port of the SOS server&mdash;eg. <samp>192.168.0.1:8888</samp></td>
  99. <td>Yes</td>
  100. </tr>
  101. <tr>
  102. <td>projectpath</td>
  103. <td>SourceSafe project path&mdash;eg. <samp>$/SourceRoot/Project1</samp></td>
  104. <td>Yes</td>
  105. </tr>
  106. <tr>
  107. <td>file</td>
  108. <td>Filename to act upon</td>
  109. <td>No; by default, act upon the project</td>
  110. </tr>
  111. <tr>
  112. <td>username</td>
  113. <td>SourceSafe username</td>
  114. <td>Yes</td>
  115. </tr>
  116. <tr>
  117. <td>password</td>
  118. <td>SourceSafe password</td>
  119. <td>No</td>
  120. </tr>
  121. <tr>
  122. <td>localpath</td>
  123. <td>Override the working directory and get to the specified path</td>
  124. <td>No</td>
  125. </tr>
  126. <tr>
  127. <td>soshome</td>
  128. <td>The path to the SourceOffSite home directory</td>
  129. <td>No</td>
  130. </tr>
  131. <tr>
  132. <td>nocompress</td>
  133. <td><q>true|false</q>&mdash;disable compression</td>
  134. <td>No</td>
  135. </tr>
  136. <tr>
  137. <td>recursive</td>
  138. <td><q>true|false</q>&mdash;Only works with the <var>GetProject</var> command</td>
  139. <td>No</td>
  140. </tr>
  141. <tr>
  142. <td>version</td>
  143. <td>a version number to get&mdash;Only works with the <var>GetFile</var> command</td>
  144. <td>No</td>
  145. </tr>
  146. <tr>
  147. <td>label</td>
  148. <td>a label version to get&mdash;Only works with the <var>GetProject</var> command</td>
  149. <td>No</td>
  150. </tr>
  151. <tr>
  152. <td>nocache</td>
  153. <td><q>true|false</q>&mdash;Only needed if <code>SOSHOME</code> is set as an environment
  154. variable</td>
  155. <td>No</td>
  156. </tr>
  157. <tr>
  158. <td>verbose</td>
  159. <td><q>true|false</q>&mdash;Status messages are displayed</td>
  160. <td>No</td>
  161. </tr>
  162. </tbody>
  163. </table>
  164. <h3>Example</h3>
  165. <p>Connect to a SourceOffsite server on <samp>192.168.10.6:8888</samp>
  166. with <q>build</q>, <q>build</q> as the username &amp; password. The SourceSafe database resides on
  167. the same box as the SOS server &amp; the VSS database is at <samp>d:\vss\srcsafe.ini</samp>. Do a
  168. recursive <var>GetProject</var> on <samp>$/SourceRoot/project1</samp>, using <samp>tmp</samp> as the
  169. working directory.</p>
  170. <pre>
  171. &lt;sosget verbose=&quot;true&quot;
  172. recursive=&quot;true&quot;
  173. username=&quot;build&quot;
  174. password=&quot;build&quot;
  175. localpath=&quot;tmp&quot;
  176. projectpath=&quot;$/SourceRoot/project1&quot;
  177. sosserverpath=&quot;192.168.10.6:8888&quot;
  178. vssserverpath=&quot;d:\vss\srcsafe.ini&quot;/&gt;</pre>
  179. <hr/>
  180. <h2 id="SOSLabel">SOSLabel</h2>
  181. <h3>Description</h3>
  182. <p>Task to perform <var>Label</var> commands with SOS</p>
  183. <h3>Parameters</h3>
  184. <table class="attr">
  185. <thead>
  186. <tr>
  187. <th scope="col">Attribute</th>
  188. <th scope="col">Values</th>
  189. <th scope="col">Required</th>
  190. </tr>
  191. </thead>
  192. <tbody>
  193. <tr>
  194. <td>soscmd</td>
  195. <td>Directory which contains <kbd>soscmd(.exe)</kbd></td>
  196. <td>No; by default, the executable must be in the path</td>
  197. </tr>
  198. <tr>
  199. <td>vssserverpath</td>
  200. <td>path to the <samp>srcsafe.ini</samp>&mdash;eg. <samp>\\server\vss\srcsafe.ini</samp></td>
  201. <td>Yes</td>
  202. </tr>
  203. <tr>
  204. <td>sosserverpath</td>
  205. <td>address and port of the SOS server&mdash;eg. <samp>192.168.0.1:8888</samp></td>
  206. <td>Yes</td>
  207. </tr>
  208. <tr>
  209. <td>projectpath</td>
  210. <td>SourceSafe project path&mdash;eg. <samp>$/SourceRoot/Project1</samp></td>
  211. <td>Yes</td>
  212. </tr>
  213. <tr>
  214. <td>username</td>
  215. <td>SourceSafe username</td>
  216. <td>Yes</td>
  217. </tr>
  218. <tr>
  219. <td>password</td>
  220. <td>SourceSafe password</td>
  221. <td>No</td>
  222. </tr>
  223. <tr>
  224. <td>label</td>
  225. <td>The label to apply to a project</td>
  226. <td>Yes</td>
  227. </tr>
  228. <tr>
  229. <td>comment</td>
  230. <td>A comment to be applied to all files being labeled</td>
  231. <td>No</td>
  232. </tr>
  233. <tr>
  234. <td>verbose</td>
  235. <td><q>true|false</q>&mdash;Status messages are displayed</td>
  236. <td>No</td>
  237. </tr>
  238. </tbody>
  239. </table>
  240. <h3>Example</h3>
  241. <p>Connect to a SourceOffsite server on <samp>192.168.10.6:8888</samp>
  242. with <q>build</q>, <q>build</q> as the username &amp; password. The SourceSafe database resides on
  243. the same box as the SOS server &amp; the VSS database is at <samp>d:\vss\srcsafe.ini</samp>. Label
  244. the <samp>$/SourceRoot/project1</samp> project with <q>test label</q>.</p>
  245. <pre>
  246. &lt;soslabel username=&quot;build&quot;
  247. password=&quot;build&quot;
  248. label=&quot;test label&quot;
  249. projectpath=&quot;$/SourceRoot/project1&quot;
  250. sosserverpath=&quot;192.168.10.6:8888&quot;
  251. vssserverpath=&quot;d:\vss\srcsafe.ini&quot;/&gt;</pre>
  252. <hr/>
  253. <h2 id="SOSCheckIn">SOSCheckIn</h2>
  254. <h3>Description</h3>
  255. <p>Task to perform <var>CheckIn</var> commands with SOS</p>
  256. <h3>Parameters</h3>
  257. <table class="attr">
  258. <thead>
  259. <tr>
  260. <th scope="col">Attribute</th>
  261. <th scope="col">Values</th>
  262. <th scope="col">Required</th>
  263. </tr>
  264. </thead>
  265. <tbody>
  266. <tr>
  267. <td>soscmd</td>
  268. <td>Directory which contains <kbd>soscmd(.exe)</kbd></td>
  269. <td>No; by default, the executable must be in the path</td>
  270. </tr>
  271. <tr>
  272. <td>vssserverpath</td>
  273. <td>path to the <samp>srcsafe.ini</samp>&mdash;eg. <samp>\\server\vss\srcsafe.ini</samp></td>
  274. <td>Yes</td>
  275. </tr>
  276. <tr>
  277. <td>sosserverpath</td>
  278. <td>address and port of the SOS server&mdash;eg. <samp>192.168.0.1:8888</samp></td>
  279. <td>Yes</td>
  280. </tr>
  281. <tr>
  282. <td>projectpath</td>
  283. <td>SourceSafe project path&mdash;eg. <samp>$/SourceRoot/Project1</samp></td>
  284. <td>Yes</td>
  285. </tr>
  286. <tr>
  287. <td>file</td>
  288. <td>Filename to act upon</td>
  289. <td>No; by default, act upon the project</td>
  290. </tr>
  291. <tr>
  292. <td>username</td>
  293. <td>SourceSafe username</td>
  294. <td>Yes</td>
  295. </tr>
  296. <tr>
  297. <td>password</td>
  298. <td>SourceSafe password</td>
  299. <td>No</td>
  300. </tr>
  301. <tr>
  302. <td>localpath</td>
  303. <td>Override the working directory and get to the specified path</td>
  304. <td>No</td>
  305. </tr>
  306. <tr>
  307. <td>soshome</td>
  308. <td>The path to the SourceOffSite home directory</td>
  309. <td>No</td>
  310. </tr>
  311. <tr>
  312. <td>nocompress</td>
  313. <td><q>true|false</q>&mdash;disable compression</td>
  314. <td>No</td>
  315. </tr>
  316. <tr>
  317. <td>recursive</td>
  318. <td><q>true|false</q>&mdash;Only works with the <var>CheckOutProject</var> command</td>
  319. <td>No</td>
  320. </tr>
  321. <tr>
  322. <td>nocache</td>
  323. <td><q>true|false</q>&mdash;Only needed if <code>SOSHOME</code> is set as an environment
  324. variable</td>
  325. <td>No</td>
  326. </tr>
  327. <tr>
  328. <td>verbose</td>
  329. <td><q>true|false</q>&mdash;Status messages are displayed</td>
  330. <td>No</td>
  331. </tr>
  332. <tr>
  333. <td>comment</td>
  334. <td>A comment to be applied to all files being checked in</td>
  335. <td>No</td>
  336. </tr>
  337. </tbody>
  338. </table>
  339. <h3>Example</h3>
  340. <p>Connect to a SourceOffsite server on <samp>server1:8888</samp> with <q>build</q>, <q>build</q> as
  341. the username &amp; password. The SourceSafe database resides on a different box
  342. (<samp>server2</samp>) &amp; the VSS database is on a share called <samp>vss</samp>. Check-in only
  343. the <samp>foobar.txt</samp> file adding a comment of <q>comment abc</q>. Extra status messages will
  344. be displayed on screen.</p>
  345. <pre>
  346. &lt;soscheckin username=&quot;build&quot;
  347. password=&quot;build&quot;
  348. file=&quot;foobar.txt&quot;
  349. verbose=&quot;true&quot;
  350. comment=&quot;comment abc&quot;
  351. projectpath=&quot;$/SourceRoot/project1&quot;
  352. sosserverpath=&quot;server1:8888&quot;
  353. vssserverpath=&quot;\\server2\vss\srcsafe.ini&quot;/&gt;</pre>
  354. <hr/>
  355. <h2 id="SOSCheckOut">SOSCheckOut</h2>
  356. <h3>Description</h3>
  357. <p>Task to perform <var>CheckOut</var> commands with SOS</p>
  358. <h3>Parameters</h3>
  359. <table class="attr">
  360. <thead>
  361. <tr>
  362. <th scope="col">Attribute</th>
  363. <th scope="col">Values</th>
  364. <th scope="col">Required</th>
  365. </tr>
  366. </thead>
  367. <tbody>
  368. <tr>
  369. <td>soscmd</td>
  370. <td>Directory which contains <kbd>soscmd(.exe)</kbd></td>
  371. <td>No; by default, the executable must be in the path</td>
  372. </tr>
  373. <tr>
  374. <td>vssserverpath</td>
  375. <td>path to the <samp>srcsafe.ini</samp>&mdash;eg. <samp>\\server\vss\srcsafe.ini</samp></td>
  376. <td>Yes</td>
  377. </tr>
  378. <tr>
  379. <td>sosserverpath</td>
  380. <td>address and port of the SOS server&mdash;eg. <samp>192.168.0.1:8888</samp></td>
  381. <td>Yes</td>
  382. </tr>
  383. <tr>
  384. <td>projectpath</td>
  385. <td>SourceSafe project path&mdash;eg. <samp>$/SourceRoot/Project1</samp></td>
  386. <td>Yes</td>
  387. </tr>
  388. <tr>
  389. <td>file</td>
  390. <td>Filename to act upon</td>
  391. <td>No; by default, act upon the project</td>
  392. </tr>
  393. <tr>
  394. <td>username</td>
  395. <td>SourceSafe username</td>
  396. <td>Yes</td>
  397. </tr>
  398. <tr>
  399. <td>password</td>
  400. <td>SourceSafe password</td>
  401. <td>No</td>
  402. </tr>
  403. <tr>
  404. <td>localpath</td>
  405. <td>Override the working directory and get to the specified path</td>
  406. <td>No</td>
  407. </tr>
  408. <tr>
  409. <td>soshome</td>
  410. <td>The path to the SourceOffSite home directory</td>
  411. <td>No</td>
  412. </tr>
  413. <tr>
  414. <td>nocompress</td>
  415. <td><q>true|false</q>&mdash;disable compression</td>
  416. <td>No</td>
  417. </tr>
  418. <tr>
  419. <td>recursive</td>
  420. <td><q>true|false</q>&mdash;Only works with the <var>CheckOutProject</var> command</td>
  421. <td>No</td>
  422. </tr>
  423. <tr>
  424. <td>nocache</td>
  425. <td><q>true|false</q>&mdash;Only needed if <code>SOSHOME</code> is set as an environment variable</td>
  426. <td>No</td>
  427. </tr>
  428. <tr>
  429. <td>verbose</td>
  430. <td><q>true|false</q>&mdash;Status messages are displayed</td>
  431. <td>No</td>
  432. </tr>
  433. </tbody>
  434. </table>
  435. <h3>Example</h3>
  436. <p>Connect to a SourceOffsite server on <samp>server1:8888</samp> with <q>build</q>, <q>build</q> as
  437. the username &amp; password. The SourceSafe database resides on a different box
  438. (<samp>server2</samp>) &amp; the VSS database is on a share
  439. called <samp>vss</samp>. Check-out <q>project1</q>, only the <samp>project1</samp> directory will be
  440. locked as the recursive option was not set. Extra status messages will be displayed on
  441. screen. The <code>soscmd(.exe)</code> file to be used resides in <samp>/usr/local/bin</samp>.</p>
  442. <pre>
  443. &lt;soscheckout soscmd=&quot;/usr/local/bin&quot;
  444. verbose=&quot;true&quot;
  445. username=&quot;build&quot;
  446. password=&quot;build&quot;
  447. projectpath=&quot;$/SourceRoot/project1&quot;
  448. sosserverpath=&quot;192.168.10.6:8888&quot;
  449. vssserverpath=&quot;\\server2\vss\srcsafe.ini&quot;/&gt;</pre>
  450. </body>
  451. </html>