Search code examples
windowsclearcase

How to separate ClearCase view and VOB?


I got a mission to separate the view prefix and VOB path. i.e. get the VOB + file path for both dynamic and snapshot views on Windows.

e.g. for all the following examples, I have to get this: \vob\folders\...\filename

Dynamic views:

  • M:\view-tag\vob\folders...\filename
  • T:\vob\folders...\filename

Snapshot views:

  • C:\users\bob\documents\cc\view-tag\vob\folders...\filename
  • \\hostname\shared-folder\view-tag\vob\folders...\filename

Solution

  • Simply start anywhere in your view and type cleartool pwv:

    cleartool pwv -root
    

    That using:

    -root
    

    Returns the root directory path of the current working view.
    This root is the portion of an element's absolute path that precedes the VOB tag.