创建C#中使用ClearCase的CAL动态视图 [英] Create clearcase dynamic view using CAL in C#
问题描述
我试图创建一个使用下面的代码在C#中使用CAL一个ClearCase动态视图。
I'm trying to create a clearcase dynamic view using CAL in C# using the following code.
private static ClearCase.ClearTool ct;
string viewName = "tmp_view";
string cmd = "mkview –tag "+ viewName + " –stream " + selectedStream +"@"+ projectVob + " \\\\<Network Shared Path>\\"+ viewName +".vws";
ct.CmdExec(cmd);
在执行时,ct.CmdExec方法抛出异常说viewTag必须指定。
On execution, ct.CmdExec method throws exception saying viewTag must be specified.
相同的cmd字符串我可以在使用cleartool命令提示符来创建一个视图。
For the same cmd string I'm able to create a view using cleartool command prompt.
能否请你告诉我,为什么我米无法在C#创建一个视图
Can you please tell me why I'm unable to create a view in C#?
推荐答案
这可能是你没有使用? - 标签
,但 -tag
:替换 -
(减)按 -
(连字符减号)结果
注:同为 -stream
:使用 -stream
。
It is possible that you didn't used -tag
but –tag
: replace '–
' (minus) by '-
' (hyphen minus).
Note: same for –stream
: use -stream
.
(加,减,连字符减号)
(plus , minus , hyphen-minus)
- 字号减就是对键盘的常规熟悉的人物,
U + 002D
,用于在这两个5-4 = 1 $ C $ 45 ASCII(AB) C>和
(反之亦然)
。 - 实际的减号,这是较长的,是
U + 2212
键,是不是在ASCII。
- "Hyphen-minus" is the regular familiar character on keyboards,
ASCII 45
andU+002D
, (ab)used in both "5-4=1
" and "vice-versa
".- The actual minus sign, which is longer, is
U+2212
and is not in ASCII.
这是典型的IBM文档的,不幸的是,使用减号(长' - ') :任何复制粘贴从他们的网页来没有马上
It is typical of IBM documentation which, unfortunately, use minus (the long '–'): any copy-paste coming from their page doesn't work immediately.
这篇关于创建C#中使用ClearCase的CAL动态视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!