Search code examples
eclipseclearcase

Importing Eclipse project from a ClearCase View


I am trying to import an Eclipse Maven project that already exists in a ClearCase snapshot view. I have the Clearcase SCM adapter installed in my Eclipse Indigo. I am following the instructions provided in documentation. But I am getting a .project is read-only error. Being a checked-in ClearCase element, the file is/should be read-only. The SCM adapter is configured to that Eclipse automatically check-out files when required. Can anyone shed any lights on this?


Solution

  • In a snapshot view, you can put the .project file in an "hijacked" state (it is even possible for dynamic views).

    Simply make it writable with an OS (ie a non-ClearCase operation) through the OS (chmod for Linux, file properties for Windows).

    At the next update of the snapshot view, that "hijacked" file won't be modified.
    Once you are done, you will be able to "undo hijacked" that file if no significant change was introduced.