1
votes

I try to list my private files in Clearcase but i don't want to list all the files from all the folders, so i tried to use a wild card but without success. I want only to list the private files in src folders.

  • The structure of the folders is like path1/to/src/ path2/to/src/

  • I tried in cleartool the cmd lsp -tag view_buildEnv .../.../src/...

but the wildcard .../.../src/... does not return any results. In config spec i use the same command element .../.../src/... -none and it is working properly.

How could i make it with success also with cleartool ?

1

1 Answers

0
votes

The main rules regarding wildcard (including ellipsis '...') are in "wildcards_ccase" (also detailed in "config_spec")

cleartool lsprivate works only in dynamic view.

The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.

So try:

cd/d M:\myview\myvob
# or
cd /view/myview/vobs/myvob

cleartool lsp -tag view_buildEnv ".../src/"
# or
cleartool lsp -tag view_buildEnv ".../src/..."

(you should not have to specify anything after src/: lsprivate should list all private elements under src and its subfolders).
(plus: "In non-config-spec contexts, the ... pattern matches directory names only.")

If works well inside a vob, but might not work inside a view for multiple vobs.
In that case:

cd/d M:\
cleartool lsprivate | grep src

In batch file:

cmd /v /c "cd/d M:\; cleartool lsprivate | grep src"