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

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