English 中文(简体)
明确案件——档案系统通往要素的道路
原标题:ClearCase - file system path to element path
  • 时间:2010-04-16 09:15:09
  •  标签:
  • clearcase

Given a file system path such as "D:pkirkham_viewVOBFolder" or "U:VOBFolder", is there a mechanism to get the path which would work in the config-spec to to load that folder "/VOB/Folder/" ?
Either CAL or cleartool commands would be fine. This is to run on client machines with ClearCase LT installed.

(I haven t found any weable in CCElement.get_PathInView( or the various cleartool lstors I ve Trial)

最佳回答

当地没有指挥权,但你所需要的唯一装载规则是以假名为依据的。

因此,你们需要一份能够:

1/ remove everything including the name of the view (which you can obtain with a <aPathTo>VOBFolder;cleartool cleartool lsview -s -cview)

D:pkirkham_viewVOBFolder => VOBFolder
U:VOBFolder              => VOBFolder

2/ 据此制定你的载荷规则:

load VOBFolder

3/ 将装货规则适用于您的光谱(如果您已经认为):

cleartool catcs > aConfisgpec.txt
echo "load VOBFolder" >> aConfisgpec.txt
cleartool setcs aConfisgpec.txt

OP评论:

因此,如果我得出一个星号,其标签为pkirkham_testing_view on pathD: hursday <>/code>,那么,如何用斜线抽取?

That is a good point, since one can name the root directory with any name.
I would recommend naming that directory with the tag of the view.

但情况并非如此,因此,你需要确定一下简要观点的基本目录:

  1. start in D:whateverpathVOBFolder ,
  2. try a cleartool lsview -cview:
  3. if it respond correctly, cd .., and repeat 2.
  4. When it exit with an error, remove the substring of that directory from the initial path. What remains will be your load rule.
问题回答

暂无回答




相关问题
Teamcity and clearcase project spanning multiple vobs

I have a clearcase project spanning multiple vobs. Teamcity 5.0 appears to assume your project is on a single clearcase vob. Is it possible to have Teamcity build a clearcase project spanning ...

Clearcase UCM - Working with streams and components, how?

My co-workers and I are relatively need to the stream idea with Clearcase UCM. Currently management has created streams for each functional software package, each of which has defined interfaces and ...

Setting up TeamCity to work with ClearCase

I m trying to setup TeamCity to work with ClearCase for continuous integration, and I ve been having a few problems. TeamCity is complaining that it cannot build the patch for the build. I ve been ...

how to change views with clearcase on eclipse

I m using eclipse to work on a HUGE C project and it works generally well except for not being able to change views. I create a new project and set the project source to the clearcase vob directory ...

ClearCase UCM - best practices using components

We are migrating a fairly large codebase from VSS to Clearcase w UCM and are considering organizing our source into one or more components within a single project. What best practicespotential ...

Continuous Integration with Teamcity and Clearcase

Has anybody successfully integrated Clearcase with Teamcity (which advertises Clearcase support) to realize a productive continuous integration build environment on a decent size project?