In order to access files using ClearCase dynamic views, a view context must be set. Normally on the command line, a 'cleartool setview' command is issued. This sets a view context for commands to access the files through the ClearCase MVFS.
In the context of an ElectricFlow step, the 'cleartool setview' command does not work the same way.
ElectricFlow's step definition has the flexibility to allow several ways of doing this. There are three alternatives for running commands in the context of a dynamic view within a step:
- The shell for the command block can be specified as the 'setview' command. All commands in the command step will run in the context of the view. To do this, set the 'shell' option in the step to:
- If only one or two commands need to be run, the 'cleartool setview -exec' command can be used in the command step. For example:
- The 'cleartool startview' command can be used with view-extended naming, instead of 'cleartool setview', within the command step. An example of this is: