Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
5 replies Latest Post - ‏2012-11-07T08:38:59Z by SystemAdmin
dnewhous
dnewhous
1 Post
ACCEPTED ANSWER

Pinned topic Config spec for vob subfolder

‏2012-10-12T22:42:03Z |
Is there a way to edit a config spec to view only particular subfolders in a VOB?
Updated on 2012-11-07T08:38:59Z at 2012-11-07T08:38:59Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    47293 Posts
    ACCEPTED ANSWER

    Re: Config spec for vob subfolder

    ‏2012-10-15T07:34:51Z  in response to dnewhous
    dnewhous wrote:
    > Is there a way to edit a config spec to view only particular subfolders in a VOB?
    Hard. You need usually to see something of the parent directory in order to access any sub-directory.
    Maybe unless you access them via their oid (the oid: syntax)?
    Marc
  • SystemAdmin
    SystemAdmin
    47293 Posts
    ACCEPTED ANSWER

    Re: Config spec for vob subfolder

    ‏2012-11-06T18:37:26Z  in response to dnewhous
    dnewhous wrote:
    > Is there a way to edit a config spec to view only particular subfolders in a VOB?

    Yes, there are several.... here are a few:
    1) You can take advantage of the -none rule in the config. spec.
    (e.g.)
    element * CHECKEDOUT
    element /vobs/a_vob /main/LATEST
    element /vobs/a_vob/some_dir /main/LATEST
    element /vobs/a_vob/some_dir/* /main/LATEST
    element /vobs/a_vob/some_other_dir /main/LATEST
    element /vobs/a_vob/some_other_dir/* /main/LATEST
    element * -none

    This would show you the vob /vobs/a_vob and it's to sub-dirs some_dir and some_other_dir
    and their subcontents and hide all other elements

    2) you could label on the elements (files and directories - and their parent dierctories) that you
    wish to see and then use the label in a config. spec.
    (e.g.)
    element * SOME_LABEL
    element * -none

    There are other ways.. but start simple ...

    Hope this helps...

    -Charles

    Try ClearTrigger, ClearReplica and ClearWeb at http://www.abs-consulting.com

    A Better Solution, Inc.

    Charles Clarke III
    ClearCase Consultant
    A Better Solution, Inc.

    Email: charles@abs-consulting.com
    http://www.abs-consulting.com
    • marct22
      marct22
      488 Posts
      ACCEPTED ANSWER

      Re: Config spec for vob subfolder

      ‏2012-11-06T19:01:11Z  in response to SystemAdmin
      Note that for directory config spec rules, you could have issues with subdirectories using element /path/to/dir/* LABEL1

      For example, if you have a config spec like
      element * CHECKEDOUT
      element \WinVOB\mydir\* LABEL1
      element * /main/LATEST

      then only the direct elements residing in mydir would see LABEL1. If you have a subdirectory like \WinVOB\mydir\subdir with content, the elements in subdir would follow show /main/LATEST, not necessarily LABEL1.

      To recursively select mydir and it's contents including subdirectories, use element \WinVOB\mydir\... LABEL1 (note * was replaced with three periods in a row) in your config spec.

      Marc Towersap
      Sr. Consultant
      ReleaseTEAM
      mtowersap@releaseteam.com
      • SystemAdmin
        SystemAdmin
        47293 Posts
        ACCEPTED ANSWER

        Re: Config spec for vob subfolder

        ‏2012-11-06T21:46:31Z  in response to marct22
        Marc,
        Good point-out.... yes that is what I meant...
        I probably should avoid posting from smartphone ;-)

        -Charles
        • SystemAdmin
          SystemAdmin
          47293 Posts
          ACCEPTED ANSWER

          Re: Config spec for vob subfolder

          ‏2012-11-07T08:38:59Z  in response to SystemAdmin
          But both of you, you correct implicitly the question.
          You also show the contents of the parent directories.
          It is still not clear what was exactly asked, which we could only know by being told why this was asked.

          Marc