1

How to remove/rename file in clearcase with CM API?

I can't find any useful methods under CcFile or CcDirectory... any help appreciated

1 Answers1

0

CM Api means ClearCase 8.x or more.
The ClearCase CM server API extends the WVCM (Workspace Versioning and Configuration Management) API, which is a standard Java API for configuration management.
Only CC 8.0.1.6 supports dynamic and snapshot views.

Considering cleartool mv is also available for rcleartool, using that would be easier than the CM API.

However, as noted by Brian Cowan in the comments:

The CM API is actually able to perform checkouts, mkelems, etc.
rcleartool and CTE actually use CM API, with rcleartool being the more "pure" CM API application.
So, in 90% of usecases, if rcleartool can do it, a CM API application should too.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • @meteoriteliu I agree. This does not seem supported. What ClearCase version are you using? On which OS (client and server side)? – VonC Jun 17 '20 at 13:05
  • I‘m using clearteam remote client v9.0 on windows, server side not sure. maybe i will try the command line rcleartool – meteoriteliu Jun 17 '20 at 13:49
  • @meteoriteliu Yes, I have edited the answer to add `rcleartool mv` – VonC Jun 17 '20 at 13:52
  • @meteoriteliu Can you please also post this question through your normal support channels to IBM/HCL? Metric-driven support and development mean that it is very hard to argue that we need to improve documentation or redo the tutorials for the API if we don't have the numbers to back up the statement that people are using the API... – Brian Cowan Jun 17 '20 at 15:52
  • @meteoriteliu the CM API is actually able to perform checkouts, mkelems, etc. Rcleartool and CTE actually use CMAPI, with rcleartool being the more "pure" CMAPI application. So, in 90% of usecases, if rcleartool can do it, a CMAPI application should too. – Brian Cowan Jun 17 '20 at 15:55
  • @BrianCowan actually I'm not sure how to ask this through "normal support channels" as my company never teach me how... you seems like working on clearcase project, can you just share some idea here? – meteoriteliu Jun 18 '20 at 00:12
  • I work in support @ HCL, meaning that anything in any detail has to have a support case associated with it. Unfortunately, I do not know what company you work for, or whether they still have a support contract. The CMAPI documentation is somewhat light in key areas, and the tutorials are not in the current infocenter (they're in the 7.1.x infocenter which is amazingly still available). – Brian Cowan Jun 22 '20 at 13:55