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

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