ClearCase [cleartool]命令错误消息和错误处理 [英] ClearCase [cleartool] commands error messages and error handling

查看:107
本文介绍了ClearCase [cleartool]命令错误消息和错误处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个程序,该程序可以自动化开发区域中的一些常用操作,
该任务涉及从外壳程序脚本(通过Java运行时)运行cleartool命令。

I'm writing a program that automates some frequently used actions in my development area, this tasks involve running cleartool commands from a shell script (by java runtime).


  1. 是否有任何文档可以清除tool / clearcase命令错误消息/退出值和原因?我想解析过程输出并处理问题/根据此结果返回响应。

  1. is there any documentation to cleartool/clearcase commands error messages/exit values and causes? i would like to parse the process output and handle issues/return a response based on that.

有没有比执行shell更简单的方法来组合Java和clearcase来自Java运行时的脚本?我找不到实际能完成工作的Java透明包...

is there an easier way to combine java and clearcase than executing shell scripts from the java runtime ? i could not find any clearcase packages for java that actually does the work...

PS
im仅运行基本命令...签出,签入,进行视图,进行活动等,并且正在使用clearcase UCM。

P.S im only running basic commands... checkout,checkin,make view, make activity, etc' and am using clearcase UCM.

谢谢!

推荐答案

cleartool 的官方文档位于ibm.com上:

The official cleartool documentation is on ibm.com:

  • cleartool ClearCase 7.x
  • For ClearCase 7.1.x/7.2, you have a Java API (the Change Management API (CM API)).

cleartool 页面 ,在交互模式下, cleartool -status 返回每个执行的 cleartool 子命令的状态(0或1)。 >
因此,在非交互模式下:

As mentioned in the cleartool page, in interactive mode, cleartool -status returns the status (0 or 1) of each cleartool subcommand executed.
So in non-interactive mode:


单命令模式的退出状态取决于命令是否成功(零退出状态)或生成错误消息(退出状态为非零)。

The exit status from single-command mode depends on whether the command succeeded (zero exit status) or generated an error message (nonzero exit status).

但是如果您想查看其他API示例,则大多数Build Schedulers具有像Jenkins这样的ClearCase API:例如,参见 simpleclearcase / ClearTool.java ay / JENKINS / SimpleClearCase-Plugin rel = nofollow> SimpleClearCase-Plugin 。

But if you want to see other API examples, most Build Schedulers have a ClearCase API, like Jenkins: see for instance "simpleclearcase/ClearTool.java" in the SimpleClearCase-Plugin.

请参见< a href = https://github.com/sata/simpleclearcase-plugin/blob/da139c327de1d9eb50b4ce2f841edb8a4a6e38fe/src/main/java/jenkins/plugins/simpleclearcase/ClearTool.java#L381-L386 rel = nofollow> simpleclearcase / ClearTool.java#L381-L386

请注意,随着ClearCase 8.X(ClearTeam)的改变,其具有 CCRC(ClearCase远程客户端)API rcleartool

Note that changes with ClearCase 8.X (ClearTeam), which has a CCRC (ClearCase Remote Client) API rcleartool

这篇关于ClearCase [cleartool]命令错误消息和错误处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆