How to import a non-eclipse project from clear case remote client sever?

Go To StackoverFlow.com

1

The normal process to load project from ccrc sever is create a Base view on the local machine and mount a specific VOB in the CCRC sever. Then we can import the project in this VOB by going import -> Existing project from workspace.

But the problem is some of our developers are using eclipse as the IDE, and all the projects on the server vob do not include .project and .classpath, Eclipse cannot recognize a project without having the .project and .classpath files in it. I have tried a workaround which is create a new project having the same name as the project wanted to be imported, and then going import -> File System. This will copy the project into the workspace from your local view but not in the source control. So this will be a problem when checking in and out.

Could anyone tell me the correct why to do that? Thanks in advance.

2012-04-04 03:28
by Kuku


1

Try to compare the content of your simple .project that you created in order to try and import in your Eclipse workspace, with one .project file already stored in CCRC.

You should see a nature element which add to the project the "version control" capability.
For instance, for Rational Method Composer, you would see:

<nature>com.ibm.rmc.library.persistence.distributed.project.MethodPluginProjectNature</nature>

(I am not sure of the exact nature used by a CCRC project)
See this technote as an example, in which the .project is manually modified to look like:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
  <name>new_name</name>
  <comment></comment>
  <projects>
  </projects>
  <buildSpec>
  </buildSpec>
  <natures>
    <nature>com.ibm.rmc.library.persistence.distributed.project.MethodPluginProjectNature</nature>
  </natures>
</projectDescription>
2012-04-04 04:47
by VonC
Again, the <nature> element I show in the answer is for RMC, not CCRC. It is an example, in order to illustrate what it would look like, not a literal value to copy. You need to find a similar <nature> element value in one of your existing CCRC-managed Eclipse project - VonC 2012-04-04 05:08
I cannot catch what you have said. The projects on the CCRC server donot including .project and I just want to import an agnostic project on the CCRC server into eclipse - Kuku 2012-04-04 05:56
@user1311839: then try your normal process you describe in your question on a dummy Eclipse project in order to import it in CCRC, just to see what the generated .project looks like - VonC 2012-04-04 06:18
I have found a way to do that. But thanks for your reply Von - Kuku 2012-04-04 22:43
@user1311839: great, but could you post, as an answer, what you have found, for other to benefit from, and for me to upvote it - VonC 2012-04-05 03:54
Ads