0

I have asked this question long back and the answer was given. Now i would like to get all the component root folder in a vob.

The answer in that question was if i give the component name ,it will give the root folder. But now my vob contains plenty of components and it was tough for me to enter each component.

What is the cleartool command for finding all the component root folder in a vob?

Community
  • 1
  • 1
Samselvaprabu
  • 16,830
  • 32
  • 144
  • 230

1 Answers1

1

That would be cleartool lscomp, for listing all the component names.
For each component name, you can the call the routine described in "how to find root[folder] for each component using cleartool?"

cleartool lscomp -s -invob \aVobTag

(with -s, you only get the name, not the extended name)

As in:

cleartool lscomp -invob /vobs_projects
cleartool lscomp -invob \vobs_projects # on Windows
2007-09-17T12:06:59  vobs_parser  bill
root directory: "/vobs_parser"
2007-03-29T17:23:16  vobs_applets  pklenk
root directory: "/vobs_applets"

Note that /vobs_projects is a pvob (project pvob).

–inv/ob vob-selector

Displays information for all components in the specified project VOB.

See "What is the Difference between VOB and PVOB?".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • This is the command i have executed M:\MyView\MyVob>cleartool lscomp -invob /MyVob . I am getting the following error . cleartool: Error: Not a UCM PVOB: "/MyVob". – Samselvaprabu Dec 15 '14 at 14:55
  • @Samselvaprabu a vob or pvob *tag* in Windows should start with `\`: `\MyVob`. And you can list components in a pvob only (UCM metadata), not a vob (data: files and directories). – VonC Dec 15 '14 at 14:57
  • @Samselvaprabu See http://stackoverflow.com/a/21281992/6309 and my previous answer http://stackoverflow.com/a/27459889/6309 – VonC Dec 15 '14 at 15:01
  • If i try with Pvob name , it also throws error. M:\ViewNameMyVob\IPC>cleartool lscomp -invob /a_Pvob cleartool: Error: Unable to determine VOB for pathname "/a_Pvob". – Samselvaprabu Dec 15 '14 at 15:01
  • @Samselvaprabu again, a tag in Windows starts with `\\`. `\aPvob` – VonC Dec 15 '14 at 15:02