To load elements in a snapshot view using the command line

To copy elements from a VOB to a snapshot view root directory, enter the following command:
cleartool update -add_loadrules path [ path ... ] 

This command appends a new load rule to the config spec and loads the elements specified.

The use of this command varies depending on your development environment:
  • If you working in a UCM environment:
    The argument path identifies an element in the component namespace at a path that is relative to a snapshot view. For example, the following command loads all elements in a component named /gui_vob into the view pat_v1.4_cropcircle_sv:
    cleartool update -add_loadrules ~/pat_v1.4_cropcircle_sv/guivob
  • If you are working in a base ClearCase® environment:
    The variable path names an element in the VOB namespace at a path that is either relative to your current location in the directory structure of the snapshot view or is an absolute path. For example, the following command loads all elements in a VOB named /guivob into the view pat_v1.4_cropcircle_sv:
    cleartool update –add_loadrules ~/pat_v1.4_cropcircle_sv/guivob/batch/lib.c
    The load rule is added at the end of the config spec and the new config spec is set.
You can also use a relative path for the path argument. For example, these commands load all elements in /guivob:
% cd ~/pat_v1.4_cropcircle_sv
% cleartool update -add_loadrules guivob
The following commands load only the batch directory recursively:
% cd ~/pat_v1.4_cropcircle_sv
% cleartool update -add_loadrules guivob/batch

You can unload elements from a snapshot view by removing or modifying load rules when editing the config spec.

Related concepts
About unloading elements
About VOB links
Before accessing files not loaded into snapshot views
Before adjusting the scope of a view in a UCM project
Before excluding elements from loading
How files and directories in snapshot views are unloaded
Related tasks
To remove, modify or add load rules when editing the config spec
To load and unload elements in a snapshot view using Rational ClearCase Explorer (Windows)
To refresh a loaded file or directory deleted from a snapshot view
Related reference
update

Feedback