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.

vss.html 19 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. <html>
  2. <head>
  3. <title>Microsoft Visual SourceSafe(VSS) Tasks</title>
  4. </head>
  5. <body>
  6. <h1>Microsoft Visual SourceSafe Tasks User Manual</h1>
  7. <p>by</p>
  8. <ul>
  9. <li>Craig Cottingham</li>
  10. <li>Andrew Everitt</li>
  11. <li>Balazs Fejes 2</li>
  12. <li><a href="mailto:Glenn_Twiggs@bmc.com">Glenn_Twiggs@bmc.com</a></li>
  13. <li>Martin Poeschl (<a href="mailto:mpoeschl@marmot.at">mpoeschl@marmot.at</a>)</li>
  14. <li>Phillip Wells</li>
  15. <li>Jon Skeet (<a href="mailto:jon.skeet@peramon.com">jon.skeet@peramon.com</a>)</li>
  16. <li>Nigel Magnay (<a href="mailto:nigel.magnay@parsec.co.uk">nigel.magnay@parsec.co.uk</a>)</li>
  17. </ul>
  18. <p>2001/04/29</p>
  19. <hr>
  20. <h2>Contents</h2>
  21. <ul>
  22. <li><a href="#intro">Introduction</a></li>
  23. <li><a href="#tasks">The Tasks</a></li>
  24. </ul>
  25. <br>
  26. <h2><a name="intro">Introduction</a></h2>
  27. <p>These tasks provide an interface to the
  28. <a href="http://msdn.microsoft.com/ssafe/default.asp" target="_top">Microsoft Visual SourceSafe</a> SCM.
  29. The <code>org.apache.tools.ant.taskdefs.optional.vss</code> package consists of a simple framework to support
  30. vss functionality as well as some Ant tasks encapsulating frequently used vss commands.
  31. Although it is possible to use these commands on the desktop,
  32. they were primarily intended to be used by automated build systems.</p>
  33. <h2><a name="tasks">The Tasks</a></h2>
  34. <table border="0" cellspacing="0" cellpadding="3">
  35. <tr>
  36. <td><a href="#vssget">vssget</a></td>
  37. <td>Retrieves a copy of the specified VSS file(s).</td>
  38. </tr>
  39. <tr>
  40. <td><a href="#vsslabel">vsslabel</a></td>
  41. <td>Assigns a label to the specified version or current version of a file or project.</td>
  42. </tr>
  43. <tr>
  44. <td><a href="#vsshistory">vsshistory</a></td>
  45. <td>Shows the history of a file or project in VSS.</td>
  46. </tr>
  47. <tr>
  48. <td><a href="#vsscheckin">vsscheckin</a></td>
  49. <td>Updates VSS with changes made to a checked out file, and unlocks the VSS master copy.</td>
  50. </tr>
  51. <tr>
  52. <td><a href="#vsscheckout">vsscheckout</a></td>
  53. <td>Copies a file from the current project to the current folder, for the purpose of editing.</td>
  54. </tr>
  55. <tr>
  56. <td><a href="#vssadd">vssadd</a></td>
  57. <td>Adds a new file into the VSS Archive</td>
  58. </tr>
  59. <tr>
  60. <td><a href="#vsscp">vsscp</a></td>
  61. <td>Change the current project being used in VSS</td>
  62. </tr>
  63. </table>
  64. <hr>
  65. <h2>Task Descriptions</h2>
  66. <!-- VSSGET -->
  67. <h2><a name="vssget">VssGet</a></h2>
  68. <h3>Description</h3>
  69. Task to perform GET commands to Microsoft Visual SourceSafe.
  70. <p>If you specify two or more attributes from version, date and
  71. label only one will be used in the order version, date, label.</p>
  72. <h3>Parameters</h3>
  73. <table border="1" cellpadding="2" cellspacing="0">
  74. <tr>
  75. <th>Attribute</th>
  76. <th>Values</th>
  77. <th>Required</th>
  78. </tr>
  79. <tr>
  80. <td>vsspath</td>
  81. <td>SourceSafe path which specifies the project/file(s) you wish to
  82. perform the action on. You should not specify the leading dollar-sign -
  83. it is prepended by Ant automatically.</td>
  84. <td>Yes</td>
  85. </tr>
  86. <tr>
  87. <td>login</td>
  88. <td>username[,password] - The username and password needed to get access
  89. to VSS. Note that you may need to specify both (if you have a password) -
  90. Ant/VSS will hang if you leave the password out and VSS does not accept
  91. login without a password. </td>
  92. <td>No</td>
  93. </tr>
  94. <tr>
  95. <td>localpath</td>
  96. <td>Override the working directory and get to the specified path</td>
  97. <td>No</td>
  98. </tr>
  99. <tr>
  100. <td>ssdir</td>
  101. <td>directory where <code>ss.exe</code> resides. By default the
  102. task expects it to be in the PATH.</td>
  103. <td>No</td>
  104. </tr>
  105. <tr>
  106. <td>serverPath</td>
  107. <td>directory where <code>srssafe.ini</code> resides.</td>
  108. <td>No</td>
  109. </tr>
  110. <tr>
  111. <td>writable</td>
  112. <td>true or false</td>
  113. <td>No</td>
  114. </tr>
  115. <tr>
  116. <td>recursive</td>
  117. <td>true or false</td>
  118. <td>No</td>
  119. </tr>
  120. <tr>
  121. <td>version</td>
  122. <td>a version number to get</td>
  123. <td rowspan="3">No, only one of these allowed</td>
  124. </tr>
  125. <tr>
  126. <td>date</td>
  127. <td>a date stamp to get at</td>
  128. </tr>
  129. <tr>
  130. <td>label</td>
  131. <td>a label to get for</td>
  132. </tr>
  133. <tr>
  134. <td>quiet</td>
  135. <td>suppress output (off by default)</td>
  136. <td>No</td>
  137. </tr>
  138. <tr>
  139. <td>autoresponse</td>
  140. <td>What to respond with (sets the -I option). By default, -I- is
  141. used; values of Y or N will be appended to this.</td>
  142. <td>No</td>
  143. </tr>
  144. </table>
  145. <p>Note that only one of version, date or label should be specified</p>
  146. <h3>Examples</h3>
  147. <blockquote>
  148. <pre>
  149. &lt;vssget localPath=&quot;C:\mysrc\myproject&quot;
  150. recursive=&quot;true&quot;
  151. label=&quot;Release1&quot;
  152. login=&quot;me,mypassword&quot;
  153. vsspath=&quot;/source/aProject&quot;
  154. writable=&quot;true&quot;/&gt;
  155. </pre>
  156. </blockquote>
  157. <p>Does a get on the VSS-Project <i>$/source/myproject</i> using the username
  158. <i>me</i> and the password <i>mypassword</i>. It will recursively get the files
  159. which are labeled <i>Release1</i> and write them to the local directory
  160. <i>C:\mysrc\myproject</i>. The local files will be writable.</p>
  161. <hr>
  162. <!-- VSSLABEL -->
  163. <h2><a name="vsslabel">VssLabel</a></h2>
  164. <h3>Description</h3>
  165. Task to perform LABEL commands to Microsoft Visual SourceSafe.
  166. <p>Assigns a label to the specified version or current version of a file or
  167. project.</p>
  168. <h3>Parameters</h3>
  169. <table border="1" cellpadding="2" cellspacing="0">
  170. <tr>
  171. <th>Attribute</th>
  172. <th>Values</th>
  173. <th>Required</th>
  174. </tr>
  175. <tr>
  176. <td>vsspath</td>
  177. <td>SourceSafe path which specifies the project/file(s) you wish to
  178. perform the action on. You should not specify the leading dollar-sign -
  179. it is prepended by Ant automatically.</td>
  180. <td>Yes</td>
  181. </tr>
  182. <tr>
  183. <td>login</td>
  184. <td>username[,password] - The username and password needed to get access
  185. to VSS. Note that you may need to specify both (if you have a password) -
  186. Ant/VSS will hang if you leave the password out and VSS does not accept
  187. login without a password. </td>
  188. <td>No</td>
  189. </tr>
  190. <tr>
  191. <td>ssdir</td>
  192. <td>directory where <code>ss.exe</code> resides. By default the
  193. task expects it to be in the PATH.</td>
  194. <td>No</td>
  195. </tr>
  196. <tr>
  197. <td>serverPath</td>
  198. <td>directory where <code>srssafe.ini</code> resides.</td>
  199. <td>No</td>
  200. </tr>
  201. <tr>
  202. <td>label</td>
  203. <td>A label to apply to the hierarchy</td>
  204. <td>Yes</td>
  205. </tr>
  206. <tr>
  207. <td>version</td>
  208. <td>An existing file or project version to label. By default the current
  209. version is labelled.</td>
  210. <td>No</td>
  211. </tr>
  212. <tr>
  213. <td>comment</td>
  214. <td>The comment to use for this label. Empty or '-' for no comment.</td>
  215. <td>No</td>
  216. </tr>
  217. <tr>
  218. <td>autoresponse</td>
  219. <td>What to respond with (sets the -I option). By default, -I- is
  220. used; values of Y or N will be appended to this.</td>
  221. <td>No</td>
  222. </tr>
  223. </table>
  224. <h3>Examples</h3>
  225. <blockquote>
  226. <pre>
  227. &lt;vsslabel vsspath=&quot;/source/aProject&quot;
  228. login=&quot;me,mypassword&quot;
  229. label=&quot;Release1&quot;/&gt;
  230. </pre>
  231. </blockquote>
  232. <p>Labels the current version of the VSS project <i>$/source/aProject</i> with
  233. the label <i>Release1</i> using the username <i>me</i> and the password
  234. <i>mypassword</i>.
  235. </p>
  236. <blockquote>
  237. <pre>
  238. &lt;vsslabel vsspath=&quot;/source/aProject/myfile.txt&quot;
  239. version=&quot;4&quot;
  240. label=&quot;1.03.004&quot;/&gt;
  241. </pre>
  242. </blockquote>
  243. <p>Labels version 4 of the VSS file <i>$/source/aProject/myfile.txt</i> with the
  244. label <i>1.03.004</i>. If this version already has a label, the operation (and
  245. the build) will fail.
  246. </p>
  247. <hr>
  248. <!-- VSSHISTORY -->
  249. <h2><a name="vsshistory">VssHistory</a></h2>
  250. <h3>Description</h3>
  251. Task to perform HISTORY commands to Microsoft Visual SourceSafe.
  252. <h3>Parameters</h3>
  253. <table border="1" cellpadding="2" cellspacing="0">
  254. <tr>
  255. <th>Attribute</th>
  256. <th>Values</th>
  257. <th>Required</th>
  258. </tr>
  259. <tr>
  260. <td>vsspath</td>
  261. <td>SourceSafe path which specifies the project/file(s) you wish to
  262. perform the action on. You should not specify the leading dollar-sign -
  263. it is prepended by Ant automatically.</td>
  264. <td>Yes</td>
  265. </tr>
  266. <tr>
  267. <td>login</td>
  268. <td>username[,password] - The username and password needed to get access
  269. to VSS. Note that you may need to specify both (if you have a password) -
  270. Ant/VSS will hang if you leave the password out and VSS does not accept
  271. login without a password. </td>
  272. <td>No</td>
  273. </tr>
  274. <tr>
  275. <td>ssdir</td>
  276. <td>directory where <code>ss.exe</code> resides. By default the
  277. task expects it to be in the PATH.</td>
  278. <td>No</td>
  279. </tr>
  280. <tr>
  281. <td>serverPath</td>
  282. <td>directory where <code>srssafe.ini</code> resides.</td>
  283. <td>No</td>
  284. </tr>
  285. <tr>
  286. <td>fromDate</td>
  287. <td>Start date for comparison</td>
  288. <td>See below</td>
  289. </tr>
  290. <tr>
  291. <td>toDate</td>
  292. <td>Start date for comparison</td>
  293. <td>See below</td>
  294. </tr>
  295. <tr>
  296. <td>dateFormat</td>
  297. <td>Format of dates in fromDate and toDate. Used when calculating dates with
  298. the numdays attribute. This string uses the formatting rules of SimpleDateFormat.
  299. Defaults to DateFormat.SHORT.</td>
  300. <td>No</td>
  301. </tr>
  302. <tr>
  303. <td>fromLabel</td>
  304. <td>Start label for comparison</td>
  305. <td>No</td>
  306. </tr>
  307. <tr>
  308. <td>toLabel</td>
  309. <td>Start label for comparison</td>
  310. <td>No</td>
  311. </tr>
  312. <tr>
  313. <td>numdays</td>
  314. <td>The number of days for comparison.</td>
  315. <td>See below</td>
  316. </tr>
  317. <tr>
  318. <td>output</td>
  319. <td>File to write the diff.</td>
  320. <td>No</td>
  321. </tr>
  322. <tr>
  323. <td>recursive</td>
  324. <td>true or false</td>
  325. <td>No</td>
  326. </tr>
  327. <tr>
  328. <td>style</td>
  329. <td>brief, codediff, default or nofile. The default is default.</td>
  330. <td>No</td>
  331. </tr>
  332. </table>
  333. <h4>Specifying the time-frame</h4>
  334. <p>There are different ways to specify what time-frame you wish to evaluate:</p>
  335. <ul>
  336. <li>Changes between two dates: Specify both <code>fromDate</code> and <code>toDate</code> </li>
  337. <li>Changes before a date: Specify <code>toDate</code></li>
  338. <li>Changes after a date: Specify <code>fromDate</code></li>
  339. <li>Changes X Days before a date: Specify <code>toDate</code> and (negative!) <code>numDays</code></li>
  340. <li>Changes X Days after a date: Specify <code>fromDate</code> and <code>numDays</code></li>
  341. </ul>
  342. <h3>Examples</h3>
  343. <blockquote>
  344. <pre>
  345. &lt;vsshistory vsspath=&quot;/myProject&quot; recursive=&quot;true&quot;
  346. fromLabel=&quot;Release1&quot;
  347. toLabel=&quot;Release2&quot;/&gt;
  348. </pre>
  349. </blockquote>
  350. <p>Shows all changes between &quot;Release1&quot; and &quot;Release2&quot;.</p>
  351. <blockquote>
  352. <pre>
  353. &lt;vsshistory vsspath=&quot;/myProject&quot; recursive=&quot;true&quot;
  354. fromDate=&quot;01.01.2001&quot;
  355. toDate=&quot;31.03.2001&quot;/&gt;
  356. </pre>
  357. </blockquote>
  358. <p>Shows all changes between January 1st 2001 and March 31st 2001 (in Germany, date must be specified according to your locale).</p>
  359. <blockquote>
  360. <pre>
  361. &lt;tstamp&gt;
  362. &lt;format property=&quot;to.tstamp&quot; pattern=&quot;M-d-yy;h:mma&quot; /&gt;
  363. &lt;/tstamp&gt;
  364. &lt;vsshistory vsspath=&quot;/myProject&quot; recursive=&quot;true&quot;
  365. numDays=&quot;-14&quot;
  366. dateFormat=&quot;M-d-yy;h:mma&quot;
  367. toDate=&quot;${to.tstamp}&quot;/&gt;
  368. </pre>
  369. </blockquote>
  370. <p>Shows all changes in the 14 days before today.</p>
  371. <hr>
  372. <!-- VSSCHECKIN -->
  373. <h2><a name="vsscheckin">VssCheckin</a></h2>
  374. <h3>Description</h3>
  375. Task to perform CHECKIN commands to Microsoft Visual SourceSafe.
  376. <h3>Parameters</h3>
  377. <table border="1" cellpadding="2" cellspacing="0">
  378. <tr>
  379. <th>Attribute</th>
  380. <th>Values</th>
  381. <th>Required</th>
  382. </tr>
  383. <tr>
  384. <td>vsspath</td>
  385. <td>SourceSafe path which specifies the project/file(s) you wish to
  386. perform the action on. You should not specify the leading dollar-sign -
  387. it is prepended by Ant automatically.</td>
  388. <td>Yes</td>
  389. </tr>
  390. <tr>
  391. <td>login</td>
  392. <td>username[,password] - The username and password needed to get access
  393. to VSS. Note that you may need to specify both (if you have a password) -
  394. Ant/VSS will hang if you leave the password out and VSS does not accept
  395. login without a password. </td>
  396. <td>No</td>
  397. </tr>
  398. <tr>
  399. <td>localpath</td>
  400. <td>Override the working directory and get to the specified path</td>
  401. <td>No</td>
  402. </tr>
  403. <tr>
  404. <td>ssdir</td>
  405. <td>directory where <code>ss.exe</code> resides. By default the
  406. task expects it to be in the PATH.</td>
  407. <td>No</td>
  408. </tr>
  409. <tr>
  410. <td>serverPath</td>
  411. <td>directory where <code>srssafe.ini</code> resides.</td>
  412. <td>No</td>
  413. </tr>
  414. <tr>
  415. <td>writable</td>
  416. <td>true or false</td>
  417. <td>No</td>
  418. </tr>
  419. <tr>
  420. <td>recursive</td>
  421. <td>true or false</td>
  422. <td>No</td>
  423. </tr>
  424. <tr>
  425. <td>comment</td>
  426. <td>Comment to use for the files that where checked in.</td>
  427. <td>No</td>
  428. </tr>
  429. <tr>
  430. <td>autoresponse</td>
  431. <td>'Y', 'N' or empty. Specify how to reply to questions from VSS.</td>
  432. <td>No</td>
  433. </tr>
  434. </table>
  435. <h3>Examples</h3>
  436. <blockquote>
  437. <pre>
  438. &lt;vsscheckin vsspath=&quot;/test/test*&quot;
  439. localpath=&quot;D:\build\&quot;
  440. comment=&quot;Modified by automatic build&quot;/&gt;
  441. </pre>
  442. </blockquote>
  443. <p>Checks in the file(s) named <i>test*</i> in the project <i>test</i> using
  444. the local directory <i>D:\build</i>.</p>
  445. <hr>
  446. <!-- VSSCHECKOUT -->
  447. <h2><a name="vsscheckout">VssCheckout</a></h2>
  448. <h3>Description</h3>
  449. Task to perform CHECKOUT commands to Microsoft Visual SourceSafe.
  450. <p>If you specify two or more attributes from version, date and
  451. label only one will be used in the order version, date, label.</p>
  452. <h3>Parameters</h3>
  453. <table border="1" cellpadding="2" cellspacing="0">
  454. <tr>
  455. <th>Attribute</th>
  456. <th>Values</th>
  457. <th>Required</th>
  458. </tr>
  459. <tr>
  460. <td>vsspath</td>
  461. <td>SourceSafe path which specifies the project/file(s) you wish to
  462. perform the action on. You should not specify the leading dollar-sign -
  463. it is prepended by Ant automatically.</td>
  464. <td>Yes</td>
  465. </tr>
  466. <tr>
  467. <td>login</td>
  468. <td>username[,password] - The username and password needed to get access
  469. to VSS. Note that you may need to specify both (if you have a password) -
  470. Ant/VSS will hang if you leave the password out and VSS does not accept
  471. login without a password. </td>
  472. <td>No</td>
  473. </tr>
  474. <tr>
  475. <td>localpath</td>
  476. <td>Override the working directory and get to the specified path</td>
  477. <td>No</td>
  478. </tr>
  479. <tr>
  480. <td>ssdir</td>
  481. <td>directory where <code>ss.exe</code> resides. By default the
  482. task expects it to be in the PATH.</td>
  483. <td>No</td>
  484. </tr>
  485. <tr>
  486. <td>serverPath</td>
  487. <td>directory where <code>srssafe.ini</code> resides.</td>
  488. <td>No</td>
  489. </tr>
  490. <tr>
  491. <td>writable</td>
  492. <td>true or false</td>
  493. <td>No</td>
  494. </tr>
  495. <tr>
  496. <td>recursive</td>
  497. <td>true or false</td>
  498. <td>No</td>
  499. </tr>
  500. <tr>
  501. <td>version</td>
  502. <td>a version number to get</td>
  503. <td rowspan="3">No, only one of these allowed</td>
  504. </tr>
  505. <tr>
  506. <td>date</td>
  507. <td>a date stamp to get at</td>
  508. </tr>
  509. <tr>
  510. <td>label</td>
  511. <td>a label to get for</td>
  512. </tr>
  513. </table>
  514. <h3>Examples</h3>
  515. <blockquote>
  516. <pre>
  517. &lt;vsscheckout vsspath=&quot;/test&quot;
  518. localpath=&quot;D:\build&quot;
  519. recursive=&quot;true&quot;
  520. login=&quot;me,mypass&quot;/&gt;
  521. </pre>
  522. </blockquote>
  523. <p>Does a recursive checkout of the project test to the directory D:\build.
  524. </p>
  525. <hr>
  526. <!-- VSSADD -->
  527. <h2><a name="vssadd">VssAdd</a></h2>
  528. <h3>Description</h3>
  529. Task to perform ADD commands to Microsoft Visual SourceSafe.
  530. <h3>Parameters</h3>
  531. <table border="1" cellpadding="2" cellspacing="0">
  532. <tr>
  533. <th>Attribute</th>
  534. <th>Values</th>
  535. <th>Required</th>
  536. </tr>
  537. <tr>
  538. <td>localpath</td>
  539. <td>Specify the local file(s) to add to VSS</td>
  540. <td>Yes</td>
  541. </tr>
  542. <tr>
  543. <td>login</td>
  544. <td>username[,password] - The username and password needed to get access
  545. to VSS. Note that you may need to specify both (if you have a password) -
  546. Ant/VSS will hang if you leave the password out and VSS does not accept
  547. login without a password. </td>
  548. <td>No</td>
  549. </tr>
  550. <tr>
  551. <td>ssdir</td>
  552. <td>directory where <code>ss.exe</code> resides. By default the
  553. task expects it to be in the PATH.</td>
  554. <td>No</td>
  555. </tr>
  556. <tr>
  557. <td>serverPath</td>
  558. <td>directory where <code>srssafe.ini</code> resides.</td>
  559. <td>No</td>
  560. </tr>
  561. <tr>
  562. <td>writable</td>
  563. <td>true or false</td>
  564. <td>No</td>
  565. </tr>
  566. <tr>
  567. <td>recursive</td>
  568. <td>true or false</td>
  569. <td>No</td>
  570. </tr>
  571. <tr>
  572. <td>comment</td>
  573. <td>Comment to use for the files that where checked in.</td>
  574. <td>No</td>
  575. </tr>
  576. <tr>
  577. <td>autoresponse</td>
  578. <td>'Y', 'N' or empty. Specify how to reply to questions from VSS.</td>
  579. <td>No</td>
  580. </tr>
  581. </table>
  582. <h3>Examples</h3>
  583. <blockquote>
  584. <pre>
  585. &lt;vssadd localpath=&quot;D:\build\build.00012.zip&quot;
  586. comment=&quot;Added by automatic build&quot;/&gt;
  587. </pre>
  588. </blockquote>
  589. <p>Add the file named build.00012.zip into the project current working
  590. directory (see vsscp).</p>
  591. <hr>
  592. <!-- VSSCP -->
  593. <h2><a name="vsscp">VssCp</a></h2>
  594. <h3>Description</h3>
  595. <p>Task to perform CP (Change Project) commands to Microsoft Visual SourceSafe.</p>
  596. <p>This task is typically used before a VssAdd in order to set the target project</p>
  597. <h3>Parameters</h3>
  598. <table border="1" cellpadding="2" cellspacing="0">
  599. <tr>
  600. <th>Attribute</th>
  601. <th>Values</th>
  602. <th>Required</th>
  603. </tr>
  604. <tr>
  605. <td>vsspath</td>
  606. <td>SourceSafe path which specifies the project you wish to
  607. make the current project. You should not specify the leading dollar-sign -
  608. it is prepended by Ant automatically.</td>
  609. <td>Yes</td>
  610. </tr>
  611. <tr>
  612. <td>login</td>
  613. <td>username[,password] - The username and password needed to get access
  614. to VSS. Note that you may need to specify both (if you have a password) -
  615. Ant/VSS will hang if you leave the password out and VSS does not accept
  616. login without a password. </td>
  617. <td>No</td>
  618. </tr>
  619. <tr>
  620. <td>ssdir</td>
  621. <td>directory where <code>ss.exe</code> resides. By default the
  622. task expects it to be in the PATH.</td>
  623. <td>No</td>
  624. </tr>
  625. <tr>
  626. <td>serverPath</td>
  627. <td>directory where <code>srssafe.ini</code> resides.</td>
  628. <td>No</td>
  629. </tr>
  630. </table>
  631. <h3>Examples</h3>
  632. <blockquote>
  633. <pre>
  634. &lt;vsscp vsspath=&quot;/Projects/ant&quot;/&gt;
  635. </pre>
  636. </blockquote>
  637. <p>Sets the current VSS project to <i>$/Projects/ant</i>.</p>
  638. <hr>
  639. <p align="center">Copyright &copy; 2001-2002 Apache Software Foundation. All rights
  640. Reserved.</p>
  641. </body>
  642. </html>