Can I keep my settings upgrading Eclipse from Indigo to Juno?

 ̄綄美尐妖づ 提交于 2019-12-03 00:38:55

问题


How can I upgrade Eclipse from Indigo to Juno without losing all of my customizations?

I've tried two different things, neither of which worked:

  • Export prefs from Indigo and import into Juno
  • Run Juno on a copy of the Indigo workspace

It's so annoying to have to start from scratch with every upgrade...


回答1:


I am no expert, but I just added new sites to my "Available Software Sites" (help -> install new software -> Available Software Sites)

http://download.eclipse.org/releases/juno

http://download.eclipse.org/tools/cdt/releases/juno

and updated (help -> install updates).

After the update

http://download.eclipse.org/eclipse/updates/4.2 had been added http://download.eclipse.org/eclipse/updates/3.7 had been disabled http://download.eclipse.org/tools/cdt/releases/indigo had been disabled

maybe other changes that I didn't notice.

Everything seems to work as expected - project list remains - perspectives remain - the only thing that wasn't preserved seemed to be the editor tabs that were open in the workspace, but that is small loss. So hopefully that was the right way to do it - unless someone wants to tell me differently.

Alan




回答2:


I followed the same way that AlanB described and had no problems upgrading from Indigo:

  1. Add the Juno Update Site and the update sites of other projects you are using (under Eclipse > Preferences > Available Software Sites)

  2. Select Help > Check for Updates

  3. Follow the update wizard (select everything you need, accept everything you have to)

  4. Restart Eclipse

Additional information:

FAQ entry in the eclipse.org wiki: "How do I upgrade Eclipse?"

Eclipse Juno (4.2) Readme (slightly more detailed): "Upgrading Workspace from a Previous Release"




回答3:


You guys are making this into a much bigger issue than it really is, Eclipse is designed to be portable, i.e. it doesn't need to be installed or store settings in the registry etc...

Upgrading and maintaining settings is as simple as downloading version Y and extracting it into the version X folder overwriting everything but the configuration folder. The new version configuration folder only has 2 or 3 generic files in it anyway until after the first time it is run. I've done this over the past 4 versions of Eclipse and never had a problem.

The only thing to keep in mind is that anything that's not included in whichever specialized version you're using may need to be upgraded, but that's simply a matter of clicking check for upgrades under help after running the new version for the first time.




回答4:


@AlanB, that doesn't work for me, because the releases repo does not include the Eclipse SDK. Maybe the organization has changed since you upgraded.

I had to add the following repository: http://download.eclipse.org/eclipse/updates/4.2/ to the available software sites.

Even then check updates doesn't work. Have to go through the install new software path, select the above repo, and then it shows Eclipse SDK, Eclipse Platform SDK, etc. options. Have to select the correct option to upgrade depending on the current installation (i.e., if it was a platform or SDK, etc.)

Hope this helps someone.

CC




回答5:


You can transfer most of your preferences by Export... > Preferences > Export all in your old installation and importing them into your new one.




回答6:


EDIT: This is for Linux users

This link should help: http://blog.brunobraga.net/eclipse-42-in-ubuntu-1204

Essentially you just need to replace your /usr/lib/eclipse with a new download of the latest version, and that's really about it.




回答7:


You can import existing projects from a common root folder using

File > Import... > General > Existing Projects into Workspace

in addition to the preference transfer (as thSoft suggested):

File > Export... > General > Preferences > Export all
File > Import... > General > Preferences > Import all




回答8:


You can use eclipse-perspective-share to migrate your perspectives.

My 2 cents.




回答9:


The first and second answers didn't work for me.

I ended up downloading the most recent version of eclipse and import the workspace and configurations from the previous version.

I found this video helpful http://www.youtube.com/watch?v=57vTrxFa3d4



来源:https://stackoverflow.com/questions/10953686/can-i-keep-my-settings-upgrading-eclipse-from-indigo-to-juno

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!