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

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