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 21 KiB

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