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

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