How to open a dynamic view in clear case with a gi

2020-01-29 21:25发布

问题:

I have config spects for a view and I need to create a view in Clear Case using command prompt. Please let me about the commands I can use with some example.

Thanks in Advance!

回答1:

That would be using:

  • cleartool mkview
  • followed by cleartool setcs -tag yourDynView pname, with pname being "a text file whose contents are to become the view's new config spec".

For creating a dynamic view:

cleartool mkview -tag yourDynView  \\shared\path\to\viewStorage\yourDynView.vws

That will create a dynamic view with a default config spec:

element * CHECKEDOUT
element * /main/LATEST

You will then be able to replace that config spec with any other config spec stored in a file, with the setcs command.