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

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