ClearCase 工具是否提供 Java api 支持?

Does ClearCase tool provide Java api support?

我需要使用 java 连接到 IBM rational ClearCase。

我需要对clear case进行所有的操作,比如checkin和checkout等

您有这样的实施示例吗?

你可以看看 ClearCase CM API, see its man page:

The IBM Rational® CCRC WAN server API is a unified Java™ API through which you can access ClearCase®. The ClearCase CM server API extends the WVCM (Workspace Versioning and Configuration Management) API, which is a standard Java API for configuration management (see "JSR 147: Workspace Versioning and Configuration Management").

You can use the ClearCase CM API to build client applications that access Rational ClearCase and to build new integrations. The client application can be an Eclipse plugin or other Java client application. For example, you can use the API to build client applications that:

  • Perform ClearCase checkout and checkin operations from your Java application.
  • Browse the contents of a ClearCase web view or dynamic view on your local machine (snapshot views are not supported).
  • Create and modify ClearCase UCM objects, such as activities and streams.

可以看到new features introduced with ClearCase 8.

请注意,与常规的 ClearCase 7 服务器相比,它更适用于 CCRC 7 / ClearTeam 8 环境。

这意味着对于 ClearCase 7.1,您可以使用 java 类包装 cleartool(那里没有 REST API...),就像“Apache Ant ClearCase Tasks”一样。
CCCheckout 将允许对 ClearCase 执行“cleartool checkout”命令。