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

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