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

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