Ashwin
Ashwin

Reputation: 433

Using Clearcase and Eclipse for C++

I work on a large C/C++ project and the code base is maintained in Clearcase. Till date we primarily work in Linux environment and we don't extensively use IDE. We directly checkout and edit files through VI.

Since I got access to Clearcase for Windows access, I am now trying to access the sources files in Eclipse. I primarily want to use Eclipse for Editing and Code Navigation. I create views through my unix account. I am able to mount the same view on my Windows PC using Clearcase Explorer. I am able to access the code and make changes to the file that were checked out earlier.

Can someone familiar to Eclipse please let me know how I can view that code base in eclipse. I do NOT want to create copies of the code base in my local filesystem. If I try creating a new project with the code base drive as the root folder, the project wont get created since I don't have write permission in that folder.

Is there a workaround?

Thanks in Advance!

Upvotes: 3

Views: 1617

Answers (1)

VonC
VonC

Reputation: 1323593

As long as you can mount your Linux filesystem on windows, you should be able to reference the sources directly from Eclipse.

The most important detail, for the ClearCase plugin to work is for the .project to and .classpath files to be right alongside the sources, in your snapshot view.
See:

For that Unix view to be recognize from Windows, you would have to tag and register it in the Windows region: "ClearCase: Are views created in Unix not visible from Windows and vice versa?".

Note that the case of snapshot views (accessing Unix views from windows), as this help page details, any ClearCase operation might fail:
See "Before accessing snapshot views across different platforms"

You can access snapshot views across different platforms, but you cannot issue Rational ClearCase commands across platforms.
For example, you cannot check out files in snapshot views on UNIX workstations from Rational ClearCase hosts on Windows computers, nor can you create shortcuts to snapshot views on UNIX workstations from Rational ClearCase Explorer.

If you are on a Rational ClearCase host running on a Windows computer and you hijack a file in a UNIX snapshot view, the hijack is detected when you update the view from a Rational ClearCase host on a UNIX platform.

In your case, if by "mounting" you mean mount dynamic view, then you should be ok, as mentioned in this help page, use Region Synchronizer to import the Linux or UNIX view tag of the view into your Windows network region.

Upvotes: 2

Related Questions