开发者

New Eclipse workspace in working copy folder does not recognize existing projects from subversion

I have an Eclipse workspace set up on one of my two work machines. The entire workspace is synched with a subversion repository and all projects and settings (including metadata) within the workspace are stored in the repository.

I recently installed Eclipse on my second machine and created a new working copy folder that I check out to the same repository. When I opened Eclipse and set the workspace to the local working copy folder, none of the project appeared in my package explorer.

I am still new to Eclipse and Subversion, but I would assume that as long as the workspace metadata and settings are in the working copy folder Eclipse should see them.

How do I create an exact duplicate of the original workspace on the second machine and keep the two in sync with Subversion?

Thanks in advance for your suggestions.

UPDATE: Apparently the answer provided by @Kos is the only way I have found to recreate a copy of the workspace in another working copy. Even though my .metadata folder is under version control as well, when I checkout a new working copy Eclipse does not recognize the checked out .metadata fo开发者_开发问答lder.


Import the projects to the workspace using File -> Import -> Existing projects into workspace.

Uncheck copy projects into workspace because they are physically there already.


To keep the metadata in sync, you could check out this.

"SVN Repositories" always comes up blank when you switch workspaces Is there a plugin to get Eclipse to remember them?

In short, you want to export your preferences (particularly your svn prefs) while in your old workspace, then import them into the new one.

open old workspace
Menu File > Export...
General > Preferences.
..../workspace/mypreferences.epf

open new workspace
Menu File > Import...
..../workspace/mypreferences.epf
General > Preferences.

The projects you just checked out may well not show up as being managed by SVN. You can fix this with: Rightclick on Project, Team -> Share ... then pick the right svn and the plugin will tell you that it looks like it is already shared and would you like to use the old settings. Works like a peach.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜