PowerAda View-Relative Pathnames

From OC Systems Wiki!
Jump to: navigation, search

A user can access a view in two ways.

  • The user can use the ClearCase setview command to designate how he/she wishes to view the VOB;
  • The user can reference the view through its View-Relative Path. The view-relative path is formed by pre-pending the View Root directory (typically named /view), followed by the View Tag, to the VOB Path name. For example, the two following command lines will produce the same output for a view named delta_view within a VOB tagged ada_test:
cleartool setview delta_view ; ls /vobs/ada_test/adaproj 
ls /view/delta_view/vobs/ada_test/adaproj			

Because files under the VOB root directory (/vobs/ada_test in the above example) may appear differently at any given time depending on the user's view setting, we recommend that only view-relative pathnames be used when working within PowerAda. This is because when Powerada baselines are created under Clearcase, PowerAda must reference several views simultaneously. Path names under the VOB root may be ambiguous, because their interpretation depends on the view setting. View-relative pathnames are not ambiguous.