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.

clearcase.html 24 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Clearcase Tasks</title>
  5. <link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
  6. </head>
  7. <body>
  8. <h1>Ant ClearCase Tasks</h1>
  9. <p>by:<br>
  10. Curtis White (cwhite at aracnet dot com),<br>
  11. Sean P. Kane (spkane at genomatica dot com),<br>
  12. Rob Anderson (Anderson.Rob at vectorscm dot com), and<br>
  13. Sean Egan (sean at cm-logic dot com)</p>
  14. <p>Version 1.6 - 02/25/2003</p>
  15. <h1>ClearCase Support</h1>
  16. <h2>Table of Contents</h2>
  17. <ul>
  18. <li><A href="#introduction">Introduction</a>
  19. <li><A href="#cccheckin">CCCheckin</a>
  20. <li><A href="#cccheckout">CCCheckout</a>
  21. <li><A href="#ccuncheckout">CCUnCheckout</a>
  22. <li><A href="#ccupdate">CCUpdate</a>
  23. <li><A href="#ccmklbtype">CCMklbtype</a>
  24. <li><A href="#ccmklabel">CCMklabel</a>
  25. <li><A href="#ccrmtype">CCRmtype</a>
  26. <li><A href="#cclock">CCLock</a>
  27. <li><A href="#ccunlock">CCUnlock</a>
  28. <li><A href="#ccmkbl">CCMkbl</a>
  29. <li><A href="#ccmkattr">CCMkattr</a>
  30. <li><A href="#ccmkdir">CCMkdir</a>
  31. <li><A href="#ccmkelem">CCMkelem</a></li>
  32. </ul>
  33. <hr>
  34. <h2><a name="introduction">Introduction</a></h2>
  35. <p>Ant provides several optional tasks for working with ClearCase. These tasks correspond to various
  36. ClearCase commands using the Cleartool program. The current tasks available for Ant correspond to only
  37. a few of the significant ClearCase commands.</p>
  38. <p>More tasks can be easily added by deriving from the ClearCase class and then adding
  39. functionality that is specific to that ClearCase command.</p>
  40. <hr>
  41. <h2><a name="cccheckin">CCCheckin</a></h2>
  42. <h3>Description</h3>
  43. Task to perform a "cleartool checkin" command to ClearCase.
  44. <h3>Parameters</h3>
  45. <table border="1" cellpadding="2" cellspacing="0">
  46. <tr>
  47. <th>Attribute</th>
  48. <th>Values</th>
  49. <th>Required</th>
  50. </tr>
  51. <tr>
  52. <td>viewpath</td>
  53. <td>Path to the ClearCase view file or directory that the command
  54. will operate on</td>
  55. <td>No</td>
  56. </tr>
  57. <tr>
  58. <td>comment</td>
  59. <td>Specify a comment. Only one of comment or commentfile may be used.</td>
  60. <td>No</td>
  61. </tr>
  62. <tr>
  63. <td>commentfile</td>
  64. <td>Specify a file containing a comment. Only one of comment or commentfile
  65. may be used.</td>
  66. <td>No</td>
  67. </tr>
  68. <tr>
  69. <td>nowarn</td>
  70. <td>Suppress warning messages</td>
  71. <td>No</td>
  72. </tr>
  73. <tr>
  74. <td>preservetime</td>
  75. <td>Preserve the modification time</td>
  76. <td>No</td>
  77. </tr>
  78. <tr>
  79. <td>keepcopy</td>
  80. <td>Keeps a copy of the file with a .keep extension</td>
  81. <td>No</td>
  82. </tr>
  83. <tr>
  84. <td>identical</td>
  85. <td>Allows the file to be checked in even if it is identical
  86. to the original</td>
  87. <td>No</td>
  88. </tr>
  89. <tr>
  90. <td>failonerr</td>
  91. <td>Throw an exception if the command fails. Default is true</td>
  92. <td>No</td>
  93. </tr>
  94. </table>
  95. <h3>Examples</h3>
  96. <blockquote>
  97. <pre>
  98. &lt;cccheckin viewpath="c:/views/viewdir/afile"
  99. commentfile="acomment.txt"
  100. nowarn="true"
  101. identical="true"/&gt;
  102. </pre>
  103. </blockquote>
  104. <p>Does a ClearCase <i>checkin</i> on the file <i>c:/views/viewdir/afile</i>.
  105. Comment text from the file <i>acomment.txt</i> is added to ClearCase as a comment.
  106. All warning messages are suppressed. The file is checked in even if it is
  107. <i>identical</i> to the original.</p>
  108. <hr>
  109. <h2><a name="cccheckout">CCCheckout</a></h2>
  110. <h3>Description</h3>
  111. Task to perform a "cleartool checkout" command to ClearCase.
  112. <h3>Parameters</h3>
  113. <table border="1" cellpadding="2" cellspacing="0">
  114. <tr>
  115. <th>Attribute</th>
  116. <th>Values</th>
  117. <th>Required</th>
  118. </tr>
  119. <tr>
  120. <td>viewpath</td>
  121. <td>Path to the ClearCase view file or directory that the command
  122. will operate on</td>
  123. <td>No</td>
  124. </tr>
  125. <tr>
  126. <td>reserved</td>
  127. <td>Specifies whether to check out the file as reserved or not</td>
  128. <td>Yes</td>
  129. </tr>
  130. <tr>
  131. <td>out</td>
  132. <td>Creates a writable file under a different filename</td>
  133. <td>No</td>
  134. </tr>
  135. <tr>
  136. <td>nodata</td>
  137. <td>Checks out the file but does not create an editable file
  138. containing its data</td>
  139. <td>No</td>
  140. </tr>
  141. <tr>
  142. <td>branch</td>
  143. <td>Specify a branch to check out the file to</td>
  144. <td>No</td>
  145. </tr>
  146. <tr>
  147. <td>version</td>
  148. <td>Allows checkout of a version other than main latest</td>
  149. <td>No</td>
  150. </tr>
  151. <tr>
  152. <td>nowarn</td>
  153. <td>Suppress warning messages</td>
  154. <td>No</td>
  155. </tr>
  156. <tr>
  157. <td>comment</td>
  158. <td>Specify a comment. Only one of comment or commentfile may be used.</td>
  159. <td>No</td>
  160. </tr>
  161. <tr>
  162. <td>commentfile</td>
  163. <td>Specify a file containing a comment. Only one of comment or
  164. commentfile may be used.</td>
  165. <td>No</td>
  166. </tr>
  167. <tr>
  168. <td>notco</td>
  169. <td>Fail if it's already checked out to the current view. Set to false to ignore it.<br>
  170. Since ant 1.6.1</td>
  171. <td>No</td>
  172. </tr>
  173. <tr>
  174. <td>failonerr</td>
  175. <td>Throw an exception if the command fails. Default is true.<br>
  176. Since ant 1.6.1</td>
  177. <td>No</td>
  178. </tr>
  179. </table>
  180. <h3>Examples</h3>
  181. <blockquote>
  182. <pre>
  183. &lt;cccheckout viewpath="c:/views/viewdir/afile"
  184. reserved="true"
  185. branch="abranch"
  186. nowarn="true"
  187. comment="Some comment text"/&gt;
  188. </pre>
  189. </blockquote>
  190. <p>Does a ClearCase <i>checkout</i> on the file <i>c:/views/viewdir/afile</i>.
  191. It is checked out as <i>reserved</i> on branch called <i>abranch</i>. All
  192. warning messages are suppressed. A <i>Some comment text</i> is added to
  193. ClearCase as a comment.</p>
  194. <hr>
  195. <h2><a name="ccuncheckout">CCUnCheckout</a></h2>
  196. <h3>Description</h3>
  197. Task to perform a UnCheckout command to ClearCase.
  198. <h3>Parameters</h3>
  199. <table border="1" cellpadding="2" cellspacing="0">
  200. <tr>
  201. <th>Attribute</th>
  202. <th>Values</th>
  203. <th>Required</th>
  204. </tr>
  205. <tr>
  206. <td>viewpath</td>
  207. <td>Path to the ClearCase view file or directory that the command
  208. will operate on</td>
  209. <td>No</td>
  210. </tr>
  211. <tr>
  212. <td>keepcopy</td>
  213. <td>Specifies whether to keep a copy of the file with a .keep
  214. extension or not</td>
  215. <td>No</td>
  216. </tr>
  217. <tr>
  218. <td>failonerr</td>
  219. <td>Throw an exception if the command fails. Default is true<br>
  220. Since ant 1.6.1</td>
  221. <td>No</td>
  222. </tr>
  223. </table>
  224. <h3>Examples</h3>
  225. <blockquote>
  226. <pre>
  227. &lt;ccuncheckout viewpath="c:/views/viewdir/afile"
  228. keepcopy="true"/&gt;
  229. </pre>
  230. </blockquote>
  231. <p>Does a ClearCase <i>uncheckout</i> on the file <i>c:/views/viewdir/afile</i>.
  232. A copy of the file called <i>c:/views/viewdir/afile.keep</i> is kept.</p>
  233. <hr>
  234. <h2><a name="ccupdate">CCUpdate</a></h2>
  235. <h3>Description</h3>
  236. Task to perform an "cleartool update" command to ClearCase.
  237. <h3>Parameters</h3>
  238. <table border="1" cellpadding="2" cellspacing="0">
  239. <tr>
  240. <th>Attribute</th>
  241. <th>Values</th>
  242. <th>Required</th>
  243. </tr>
  244. <tr>
  245. <td>viewpath</td>
  246. <td>Path to the ClearCase snapshot view file or directory that the command
  247. will operate on</td>
  248. <td>No</td>
  249. </tr>
  250. <tr>
  251. <td>graphical</td>
  252. <td>Displays a graphical dialog during the update</td>
  253. <td>No</td>
  254. </tr>
  255. <tr>
  256. <td>log</td>
  257. <td>Specifies a log file for ClearCase to write to</td>
  258. <td>No</td>
  259. </tr>
  260. <tr>
  261. <td>overwrite</td>
  262. <td>Specifies whether to overwrite hijacked files or not</td>
  263. <td>No</td>
  264. </tr>
  265. <tr>
  266. <td>rename</td>
  267. <td>Specifies that hijacked files should be renamed with a .keep extension</td>
  268. <td>No</td>
  269. </tr>
  270. <tr>
  271. <td>currenttime</td>
  272. <td>Specifies that modification time should be written as the
  273. current time. Either currenttime or preservetime can be
  274. specified.</td>
  275. <td>No</td>
  276. </tr>
  277. <tr>
  278. <td>preservetime</td>
  279. <td>Specifies that modification time should preserved from the
  280. VOB time. Either currenttime or preservetime can be
  281. specified.</td>
  282. <td>No</td>
  283. </tr>
  284. <tr>
  285. <td>failonerr</td>
  286. <td>Throw an exception if the command fails. Default is true.<br>
  287. Since ant 1.6.1</td>
  288. <td>No</td>
  289. </tr>
  290. </table>
  291. <h3>Examples</h3>
  292. <blockquote>
  293. <pre>
  294. &lt;ccupdate viewpath="c:/views/viewdir"
  295. graphical="false"
  296. log="log.log"
  297. overwrite="true"
  298. currenttime="true"
  299. rename="false"/&gt;
  300. </pre>
  301. </blockquote>
  302. <p>Does a ClearCase <i>update</i> on the snapshot view directory <i>c:/views/viewdir</i>.
  303. A graphical dialog will be displayed. The output will be logged to
  304. <i>log.log</i> and it will overwrite any hijacked files. The modified
  305. time will be set to the current time.</p>
  306. <hr>
  307. <h2><a name="ccmklbtype">CCMklbtype</a></h2>
  308. <h3>Description</h3>
  309. Task to perform a "mklbtype" command to ClearCase.
  310. <h3>Parameters</h3>
  311. <table border="1" cellpadding="2" cellspacing="0">
  312. <tr>
  313. <th>Attribute</th>
  314. <th>Values</th>
  315. <th>Required</th>
  316. </tr>
  317. <tr>
  318. <td>typename</td>
  319. <td>Name of the label type to create</td>
  320. <td>Yes</td>
  321. <tr>
  322. <tr>
  323. <td>vob</td>
  324. <td>Name of the VOB</td>
  325. <td>No</td>
  326. <tr>
  327. <tr>
  328. <td>replace</td>
  329. <td>Replace an existing label definition of the same type</td>
  330. <td>No</td>
  331. <tr>
  332. <tr>
  333. <td>global</td>
  334. <td>Either global or ordinary can be specified, not both. Creates a label type that is global to the VOB or to VOBs that use this VOB</td>
  335. <td>No</td>
  336. <tr>
  337. <tr>
  338. <td>ordinary</td>
  339. <td>Either global or ordinary can be specified, not both. Creates a label type that can be used only in the current VOB. <B>Default</B></td>
  340. <td>No</td>
  341. <tr>
  342. <tr>
  343. <td>pbranch</td>
  344. <td>Allows the label type to be used once per branch in a given element's version tree</td>
  345. <td>No</td>
  346. <tr>
  347. <tr>
  348. <td>shared</td>
  349. <td>Sets the way mastership is checked by ClearCase. See ClearCase documentation for details</td>
  350. <td>No</td>
  351. <tr>
  352. <tr>
  353. <td>comment</td>
  354. <td>Specify a comment. Only one of comment or cfile may be used.</td>
  355. <td>No</td>
  356. <tr>
  357. <tr>
  358. <td>commentfile</td>
  359. <td>Specify a file containing a comment. Only one of comment or cfile may be used.</td>
  360. <td>No</td>
  361. <tr></tr>
  362. <tr>
  363. <td>failonerr</td>
  364. <td>Throw an exception if the command fails. Default is true<br>
  365. Since ant 1.6.1</td>
  366. <td>No</td>
  367. </tr>
  368. </table>
  369. <h3>Examples</h3>
  370. <blockquote>
  371. <pre>
  372. &lt;ccmklbtype typename="VERSION_1"
  373. ordinary="true"
  374. comment="Development version 1"/&gt;
  375. </pre>
  376. </blockquote>
  377. <p>Does a ClearCase <i>mklbtype</i> to create a label type named <i>VERSION_1</i>.
  378. It is created as <i>ordinary</i> so it is available only to the current VOB.
  379. The text <i>Development version 1</i> is added as a comment.</p>
  380. <hr>
  381. <h2><a name="ccmklabel">CCMklabel</a></h2>
  382. <h3>Description</h3>
  383. Task to perform a "mklabel" command to ClearCase.
  384. <h3>Parameters</h3>
  385. <table border="1" cellpadding="2" cellspacing="0">
  386. <tr>
  387. <th>Attribute</th>
  388. <th>Values</th>
  389. <th>Required</th>
  390. </tr>
  391. <tr>
  392. <td>typename</td>
  393. <td>Name of the label type</td>
  394. <td>Yes</td>
  395. <tr>
  396. <tr>
  397. <td>viewpath</td>
  398. <td>Path to the ClearCase view file or directory that the command will operate on</td>
  399. <td>No</td>
  400. <tr>
  401. <tr>
  402. <td>replace</td>
  403. <td>Replace a label of the same type on the same branch</td>
  404. <td>No</td>
  405. <tr>
  406. <tr>
  407. <td>recurse</td>
  408. <td>Process each subdirectory under viewpath</td>
  409. <td>No</td>
  410. <tr>
  411. <tr>
  412. <td>version</td>
  413. <td>Identify a specific version to attach the label to</td>
  414. <td>No</td>
  415. <tr>
  416. <tr>
  417. <td>vob</td>
  418. <td>Name of the VOB</td>
  419. <td>No</td>
  420. <tr>
  421. <tr>
  422. <td>comment</td>
  423. <td>Specify a comment. Only one of comment or cfile may be used.</td>
  424. <td>No</td>
  425. <tr>
  426. <tr>
  427. <td>commentfile</td>
  428. <td>Specify a file containing a comment. Only one of comment or cfile may be used.</td>
  429. <td>No</td>
  430. <tr></tr>
  431. <tr>
  432. <td>failonerr</td>
  433. <td>Throw an exception if the command fails. Default is true<br>
  434. Since ant 1.6.1</td>
  435. <td>No</td>
  436. </tr>
  437. </table>
  438. <h3>Examples</h3>
  439. <blockquote>
  440. <pre>
  441. &lt;ccmklabel viewpath="c:/views/viewdir/afile"
  442. comment="Some comment text"
  443. recurse="true"
  444. version="\main\2"
  445. typename="VERSION_1"/&gt;
  446. </pre>
  447. </blockquote>
  448. <p>Does a ClearCase <i>mklabel</i> on the file <i>c:/views/viewdir/afile</i> under
  449. the main branch for version 2 (<i>\main\2</i>). Text <i>Some comment text</i> is added
  450. as a comment. It will <i>recurse</i> all subdirectories.
  451. <hr>
  452. <h2><a name="ccrmtype">CCRmtype</a></h2>
  453. <h3>Description</h3>
  454. Task to perform a "rmtype" command to ClearCase.
  455. <h3>Parameters</h3>
  456. <table border="1" cellpadding="2" cellspacing="0">
  457. <tr>
  458. <th>Attribute</th>
  459. <th>Values</th>
  460. <th>Required</th>
  461. </tr>
  462. <tr>
  463. <td>typekind</td>
  464. <td>The kind of type to create. Valid types are:
  465. <table border="0" width="40%">
  466. <tr>
  467. <td width="15%"> </td>
  468. <td><b>attype</b><br>
  469. <b>brtype</b><br>
  470. <b>eltype</b><br>
  471. <b>hltype</b><br>
  472. <b>lbtype</b><br>
  473. <b>trtype</b>
  474. </td>
  475. <td>- <br>
  476. - <br>
  477. - <br>
  478. - <br>
  479. - <br>
  480. -
  481. </td>
  482. <td>attribute type<br>
  483. branch type<br>
  484. element type<br>
  485. hyperlink type<br>
  486. label type<br>
  487. trigger type
  488. </td>
  489. </tr>
  490. </table>
  491. </td>
  492. <td>Yes</td>
  493. <tr>
  494. <tr>
  495. <td>typename</td>
  496. <td>The name of the type to remove</td>
  497. <td>Yes</td>
  498. <tr>
  499. <tr>
  500. <td>ignore</td>
  501. <td>Used with trigger types only. Forces removal of trigger type even if a pre-operation trigger would prevent its removal</td>
  502. <td>No</td>
  503. <tr>
  504. <tr>
  505. <td>rmall</td>
  506. <td>Removes all instances of a type and the type object itself</td>
  507. <td>No</td>
  508. <tr>
  509. <tr>
  510. <td>comment</td>
  511. <td>Specify a comment. Only one of comment or cfile may be used.</td>
  512. <td>No</td>
  513. <tr>
  514. <tr>
  515. <td>commentfile</td>
  516. <td>Specify a file containing a comment. Only one of comment or cfile may be used.</td>
  517. <td>No</td>
  518. <tr></tr>
  519. <tr>
  520. <td>failonerr</td>
  521. <td>Throw an exception if the command fails. Default is true
  522. Since ant 1.6.1</td>
  523. <td>No</td>
  524. </tr>
  525. </table>
  526. <h3>Examples</h3>
  527. <blockquote>
  528. <pre>
  529. &lt;ccrmtype typekind="lbtype"
  530. typename="VERSION_1"
  531. commentfile="acomment.txt"
  532. rmall="true"/&gt;
  533. </pre>
  534. </blockquote>
  535. <p>Does a ClearCase <i>rmtype</i> to remove a label type (<i>lbtype</i>) named <i>VERSION_1</i>.
  536. Comment text from the file <i>acomment.txt</i> is added as a comment. All instances of the type
  537. are removed, including the type object itself.</p>
  538. <hr>
  539. <h2><a name="cclock">CCLock</a></h2>
  540. <h3>Description</h3>
  541. Task to perform a "cleartool lock" command to ClearCase.
  542. <h3>Parameters</h3>
  543. <table border="1" cellpadding="2" cellspacing="0">
  544. <tr>
  545. <th>Attribute</th>
  546. <th>Values</th>
  547. <th>Required</th>
  548. </tr>
  549. <tr>
  550. <td>replace</td>
  551. <td>Specifies replacing an existing lock</td>
  552. <td>No</td>
  553. <tr>
  554. <tr>
  555. <td>nusers</td>
  556. <td>Specifies user(s) who can still modify the object</td>
  557. <td>No</td>
  558. <tr>
  559. <tr>
  560. <td>obsolete</td>
  561. <td>Specifies that the object should be marked obsolete</td>
  562. <td>No</td>
  563. <tr>
  564. <tr>
  565. <td>comment</td>
  566. <td>Specifies how to populate comments fields</td>
  567. <td>No</td>
  568. <tr>
  569. <tr>
  570. <td>pname</td>
  571. <td>Specifies the object pathname to be locked.</td>
  572. <td>No</td>
  573. <tr>
  574. <td>objselect</td>
  575. <td>This variable is obsolete. Should use <i>objsel</i> instead.</td>
  576. <td>No</td>
  577. <tr>
  578. <tr>
  579. <td>objsel</td>
  580. <td>Specifies the object(s) to be locked.<br>
  581. Since ant 1.6.1</td>
  582. <td>No</td>
  583. <tr>
  584. <tr>
  585. <td>failonerr</td>
  586. <td>Throw an exception if the command fails. Default is true.<br>
  587. Since ant 1.6.1</td>
  588. <td>No</td>
  589. </tr>
  590. </table>
  591. <h3>Examples</h3>
  592. <blockquote>
  593. <pre>
  594. &lt;cclock
  595. objsel="stream:Application_Integration@\MyProject_PVOB"
  596. /&gt;
  597. </pre>
  598. </blockquote>
  599. <p>Does a ClearCase <i>lock</i> on the object <i>stream:Application_Integration@\MyProject_PVOB</i>.</p>
  600. <hr>
  601. <h2><a name="ccunlock">CCUnlock</a></h2>
  602. <h3>Description</h3>
  603. Task to perform a "cleartool unlock" command to ClearCase.
  604. <h3>Parameters</h3>
  605. <table border="1" cellpadding="2" cellspacing="0">
  606. <tr>
  607. <th>Attribute</th>
  608. <th>Values</th>
  609. <th>Required</th>
  610. </tr>
  611. <tr>
  612. <td>comment</td>
  613. <td>Specifies how to populate comments fields</td>
  614. <td>No</td>
  615. <tr>
  616. <tr>
  617. <td>pname</td>
  618. <td>Specifies the object pathname to be unlocked.</td>
  619. <td>No</td>
  620. <tr>
  621. <td>objselect</td>
  622. <td>This variable is obsolete. Should use <i>objsel</i> instead.</td>
  623. <td>No</td>
  624. <tr>
  625. <tr>
  626. <td>objsel</td>
  627. <td>Specifies the object(s) to be unlocked.<br>
  628. Since ant 1.6.1</td>
  629. <td>No</td>
  630. <tr>
  631. <tr>
  632. <td>failonerr</td>
  633. <td>Throw an exception if the command fails. Default is true.<br>
  634. Since ant 1.6.1</td>
  635. <td>No</td>
  636. </tr>
  637. </table>
  638. <h3>Examples</h3>
  639. <blockquote>
  640. <pre>
  641. &lt;ccunlock
  642. objsel="stream:Application_Integration@\MyProject_PVOB"
  643. /&gt;
  644. </pre>
  645. </blockquote>
  646. <p>Does a ClearCase <i>unlock</i> on the object <i>stream:Application_Integration@\MyProject_PVOB</i>.</p>
  647. <hr>
  648. <h2><a name="ccmkbl">CCMkbl</a></h2>
  649. <h3>Description</h3>
  650. Task to perform a "cleartool mkbl" command to ClearCase.
  651. <h3>Parameters</h3>
  652. <table border="1" cellpadding="2" cellspacing="0">
  653. <tr>
  654. <th>Attribute</th>
  655. <th>Values</th>
  656. <th>Required</th>
  657. </tr>
  658. <tr>
  659. <td>comment</td>
  660. <td>Specify a comment. Only one of comment or cfile may be
  661. used.</td>
  662. <td>No</td>
  663. </tr>
  664. <tr>
  665. <td>commentfile</td>
  666. <td>Specify a file containing a comment. Only one of comment or
  667. cfile may be used.</td>
  668. <td>No</td>
  669. </tr>
  670. <tr>
  671. <td>baselinerootname</td>
  672. <td>Specify the name to be associated with the baseline.</td>
  673. <td>Yes</td>
  674. </tr>
  675. <tr>
  676. <td>nowarn</td>
  677. <td>Suppress warning messages</td>
  678. <td>No</td>
  679. <tr>
  680. <tr>
  681. <td>identical</td>
  682. <td>Allows the baseline to be created even if it is identical to the
  683. previous baseline.</td>
  684. <td>No</td>
  685. </tr>
  686. <tr>
  687. <td>full</td>
  688. <td>Creates a full baseline.</td>
  689. <td>No</td>
  690. </tr>
  691. <tr>
  692. <td>nlabel</td>
  693. <td>Allows the baseline to be created without a label.</td>
  694. <td>No</td>
  695. </tr>
  696. <tr>
  697. <td>failonerr</td>
  698. <td>Throw an exception if the command fails. Default is true.<br>
  699. Since ant 1.6.1</td>
  700. <td>No</td>
  701. </tr>
  702. </table>
  703. <h3>Examples</h3>
  704. <blockquote>
  705. <pre>
  706. &lt;ccmkbl
  707. baselinerootname="Application_Baseline_AUTO"
  708. identical="yes"
  709. full="no"
  710. viewpath="v:\ApplicationCC"
  711. /&gt;
  712. </pre>
  713. </blockquote>
  714. <p>Does a ClearCase <i>mkbl</i> on the Integration view at <i>v:\ApplicationCC</i>
  715. even if it is <i>identical</i> to a previous baseline. The new baseline with be
  716. incremental and named "Application_Baseline_AUTO".</p>
  717. <hr>
  718. <h2><a name="ccmkattr">CCMkattr</a></h2>
  719. <h3>Description</h3>
  720. Task to perform a &quot;cleartool mkattr&quot; command to ClearCase.<br>
  721. Since ant 1.6.1
  722. <h3>Parameters</h3>
  723. <table border="1" cellpadding="2" cellspacing="0">
  724. <tr>
  725. <th>Attribute</th>
  726. <th>Values</th>
  727. <th>Required</th>
  728. </tr>
  729. <tr>
  730. <td>viewpath</td>
  731. <td>Path to the ClearCase view file or directory that the command will operate on</td>
  732. <td>Yes</td>
  733. </tr>
  734. <tr>
  735. <td>replace</td>
  736. <td>Replace the value of the attribute if it already exists</td>
  737. <td>No</td>
  738. </tr>
  739. <tr>
  740. <td>recurse</td>
  741. <td>Process each subdirectory under viewpath</td>
  742. <td>No</td>
  743. </tr>
  744. <tr>
  745. <td>version</td>
  746. <td>Identify a specific version to attach the attribute to</td>
  747. <td>No</td>
  748. </tr>
  749. <tr>
  750. <td>typename</td>
  751. <td>Name of the attribute type</td>
  752. <td>Yes</td>
  753. </tr>
  754. <tr>
  755. <td>typevalue</td>
  756. <td>Value to attach to the attribute type</td>
  757. <td>Yes</td>
  758. </tr>
  759. <tr>
  760. <td>comment</td>
  761. <td>Specify a comment. Only one of comment or cfile may be used.</td>
  762. <td>No</td>
  763. </tr>
  764. <tr>
  765. <td>commentfile</td>
  766. <td>Specify a file containing a comment. Only one of comment or cfile may be used.</td>
  767. <td>No</td>
  768. </tr>
  769. <tr>
  770. <td>failonerr</td>
  771. <td>Throw an exception if the command fails. Default is true</td>
  772. <td>No</td>
  773. </tr>
  774. </table>
  775. <h3>Examples</h3>
  776. <blockquote>
  777. <pre>
  778. &lt;ccmkattr viewpath=&quot;c:/views/viewdir/afile&quot;
  779. typename=&quot;BugFix&quot;
  780. typevalue=&quot;34445&quot;
  781. /&gt;
  782. </pre>
  783. </blockquote>
  784. <p>Does a ClearCase <i>mkattr</i> on the file <i>c:/views/viewdir/afile</i> and
  785. attaches the attribute <i>BugFix</i> with a value of <i>34445</i> to it.</p>
  786. <hr>
  787. <h2><a name="ccmkdir">CCMkdir</a></h2>
  788. <h3>Description</h3>
  789. Task to perform a &quot;cleartool mkdir&quot; command to ClearCase.<br>
  790. Since ant 1.6.1
  791. <h3>Parameters</h3>
  792. <table border="1" cellpadding="2" cellspacing="0">
  793. <tr>
  794. <th>Attribute</th>
  795. <th>Values</th>
  796. <th>Required</th>
  797. </tr>
  798. <tr>
  799. <td>viewpath</td>
  800. <td>Path to the ClearCase view directory that the command will operate on</td>
  801. <td>Yes</td>
  802. </tr>
  803. <tr>
  804. <td>comment</td>
  805. <td>Specify a comment. Only one of comment or cfile may be used.</td>
  806. <td>No</td>
  807. </tr>
  808. <tr>
  809. <td>commentfile</td>
  810. <td>Specify a file containing a comment. Only one of comment or cfile may be used.</td>
  811. <td>No</td>
  812. </tr>
  813. <tr>
  814. <td>nocheckout</td>
  815. <td>Do not checkout after element creation</td>
  816. <td>No</td>
  817. </tr>
  818. <tr>
  819. <td>failonerr</td>
  820. <td>Throw an exception if the command fails. Default is true</td>
  821. <td>No</td>
  822. </tr>
  823. </table>
  824. <h3>Examples</h3>
  825. <blockquote>
  826. <pre>
  827. &lt;ccmkdir viewpath=&quot;c:/views/viewdir/adir&quot;
  828. nochcekout=&quot;true&quot;
  829. comment=&quot;Some comment text&quot;/&gt;
  830. </pre>
  831. </blockquote>
  832. <p>Does a ClearCase <i>mkdir</i> on the dir <i>c:/views/viewdir/adir</i> and
  833. does not automatically check it out.</p>
  834. <hr>
  835. <h2><a name="ccmkelem">CCMkelem</a></h2>
  836. <h3>Description</h3>
  837. Task to perform a &quot;cleartool mkelem&quot; command to ClearCase.<br>
  838. Since ant 1.6.1
  839. <h3>Parameters</h3>
  840. <table border="1" cellpadding="2" cellspacing="0">
  841. <tr>
  842. <th>Attribute</th>
  843. <th>Values</th>
  844. <th>Required</th>
  845. </tr>
  846. <tr>
  847. <td>viewpath</td>
  848. <td>Path to the ClearCase view file or directory that the command will operate on</td>
  849. <td>Yes</td>
  850. <tr>
  851. <tr>
  852. <td>comment</td>
  853. <td>Specify a comment. Only one of comment or cfile may be used.</td>
  854. <td>No</td>
  855. <tr>
  856. <tr>
  857. <td>commentfile</td>
  858. <td>Specify a file containing a comment. Only one of comment or cfile may be used.</td>
  859. <td>No</td>
  860. <tr>
  861. <tr>
  862. <td>nowarn</td>
  863. <td>Suppress warning messages</td>
  864. <td>No</td>
  865. <tr>
  866. <tr>
  867. <td>nocheckout</td>
  868. <td>Do not checkout after element creation</td>
  869. <td>No</td>
  870. <tr>
  871. <tr>
  872. <td>checkin</td>
  873. <td>Checkin element after creation</td>
  874. <td>No</td>
  875. <tr>
  876. <tr>
  877. <td>preservetime</td>
  878. <td>Preserve the modification time (for checkin)</td>
  879. <td>No</td>
  880. <tr>
  881. <tr>
  882. <td>master</td>
  883. <td>Assign mastership of the main branch to the current site</td>
  884. <td>No</td>
  885. <tr>
  886. <tr>
  887. <td>eltype</td>
  888. <td>Element type to use during element creation</td>
  889. <td>No</td>
  890. <tr>
  891. <tr>
  892. <td>failonerr</td>
  893. <td>Throw an exception if the command fails. Default is true</td>
  894. <td>No</td>
  895. <tr>
  896. </table>
  897. <h3>Examples</h3>
  898. <blockquote>
  899. <pre>
  900. &lt;ccmkelem viewpath=&quot;c:/views/viewdir/afile&quot;
  901. eltype=&quot;text_file&quot;
  902. checkin=&quot;true&quot;
  903. comment=&quot;Some comment text&quot;/&gt;
  904. </pre>
  905. </blockquote>
  906. <p>Does a ClearCase <i>mkelem</i> on the file <i>c:/views/viewdir/afile</i> with
  907. element type <i>text_file</i>. It also checks in the file after creation.</p>
  908. <hr>
  909. <p align="center">Copyright &copy; 2000-2004 The Apache Software Foundation. All rights
  910. reserved.</p>
  911. </body>
  912. </html>