imported Eclipse project not linking to ClearCase

2019-01-28 23:59发布

问题:

I imported a project from ClearCase into Eclipse and it's not associated with ClearCase; meaning no check in/check out. The only thing I get under 'Team' is 'apply patch' or 'share project'.

Other projects I import into Eclipse are automatically linked to ClearCase, but not this one.

I even created a separate workspace for this view and still some projects will be linked and others not. It's not even dependent upon project; it's arbitrary.

Any ideas?

Thanks for any helpful tips!

回答1:

If you want your Eclipse project to be associated with ClearCase,

  • not only your sources need to be in a ClearCase view
  • but your .project and .classpath (Eclipse project definition files) need also to be in the same ClearCase view, right beside the sources.

In other word, you cannot create a project (which would by default be in your Eclipse workspace) referencing sources in a ClearCase view: since your workspace is not in any ClearCase vob, it won't work.

But if you create a project with its root directory (where the .project and .classpath will be created) just above the source directory, within a ClearCase repository (Vob), then you will be able to "connect" it to ClearCase.