Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do I checkout the same project from two different streams?

I copied a project into another component of another stream.  I would like to have both projects (from both streams) checked out in my workspace.  How do I do that? 

I tried Pending Changes-><2nd Stream Component>->Show Repository Files->Load As... to give the project another name in the sandbox, but that did not completely work.  The resulting project is out of sync and then not connected to the repository workspace.


0 votes

Comments

We'll need some more information to answer.
First, note that in RTC, one does not "checkout projects in a workspace".
A  workspace can accept changes from a stream, and a workspace can be loaded into a sandbox.
It sounds like you are trying to load files from a workspace into a sandbox, right?
When you say "project", do you mean "Eclipse project"?
And when you are loading the files, do you just want them loaded into the file system, or do you also want them loaded into an Eclipse instance as Eclipse projects?

Yes, you're assumptions are correct.  I'm trying to Load a project from for two different streams that have the same project name (in Eclipse).  Ultimately, I want them both visible in the same Eclipse workspace so that I can do comparisons.



3 answers

Permanent link
Eclipse will not let you load two different versions of the same project into the same Eclipse workspace, so you would have to modify the .project file of one of the projects to give the project a different name.   Once you have done that to one of the projects, you will be able to load both projects into the same Eclipse workspace.   There are a couple of ways to do that ... one is to use "Load as" to load both RTC repository workspaces into the same RTC sandbox (into different directories of that sandbox).   The other is to have two sandboxes in the Eclipse workspace (a separate sandbox for each RTC repository workspace).

0 votes

Comments

Using CVS, one can do Check out as... and get a copy of the project checked out into the same Eclipse workspace using a different name for the project.  I don't have to change the .project file to make this happen.  I would have expected Load As... to enable the same thing, but as you seemed to warn about, I get the following:

Failure mapping project JavaSpatiotemporalToolkitSWG : Resource '/JavaSpatiotemporalToolkit' already exists.

Since CVS does not have a problem with this, I consider this a problem with RTC and not Eclipse.  Any other options here?


Permanent link
In addition, if you want to compare the code of different versions of the same project, I would suggest to use the SCM compare operations available. That is what they are there for. They do not require the code to be loaded twice.

0 votes


Permanent link

You can do this if you load the first project into your local sandbox and in the eclipse package explorer refactor--rename the project itself, add a suffix of some kind.  Then load the second project from the other stream/repo workspace (just make sure to load it into a unique local sandbox).  When you refactor/rename the eclispe project it does not rename the sandbox parent project folder, more a logical update for the project name in the .project file.

There may be unintended consequences for the project where the project name is somehow referenced in the code but there shouldn't be.

Only method I know of other than running two separate instances of eclipse with unique workspaces and loading/opening the projects independently.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,016

Question asked: Jan 08 '15, 9:32 a.m.

Question was seen: 4,566 times

Last updated: Jan 15 '15, 3:45 p.m.

Confirmation Cancel Confirm