Eclipse 和复制工作区

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2493997/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:16:18  来源:igfitidea点击:

Eclipse and copying workspaces

eclipse

提问by Christian

What do I have to do to copy a complete workspace from one computer to another and be simply able to continue working on it on the other computer?

我需要做什么才能将一个完整的工作区从一台计算机复制到另一台计算机上,并且能够在另一台计算机上继续处理它?

采纳答案by Will

In general, a filesystem copy should be sufficient. If you run into problems with your projects, try removing the project from the workspace (without deleting the files) and then re-add the project, which will rebuild the metadata.

一般来说,一个文件系统副本就足够了。如果您的项目遇到问题,请尝试从工作区中删除该项目(不删除文件),然后重新添加该项目,这将重建元数据。

回答by Michael Borgwardt

Make sure you shut down eclipse before you copy the workspace, and that the target computer has the same (or higher) eclipse version, including the same plugins.

确保在复制工作区之前关闭 eclipse,并且目标计算机具有相同(或更高)的 eclipse 版本,包括相同的插件。

Check that your workspace actually contains all the projects - when creating a project, it's possible to have its files situated outside the workspace.

检查您的工作区是否确实包含所有项目 - 创建项目时,其文件可能位于工作区之外。

If your projects use any external libraries installed on the system, install these on the other system in the same place (or adjust the paths).

如果您的项目使用系统上安装的任何外部库,请将它们安装在其他系统的同一位置(或调整路径)。

Then, there should be no problem.

那么,应该没有问题。

回答by Jason M

You shouldn't have any issues with a straight filesystem copy as long as your eclipse versions match up.

只要 eclipse 版本匹配,直接文件系统副本就不应该有任何问题。

If they don't, the project metadata may not load correctly

如果没有,项目元数据可能无法正确加载

回答by neo

You need to copy the whole folder which you select as your workspace at startup (or you once selected). All settings are included in there (even the opened files).

您需要复制在启动时选择作为工作区的整个文件夹(或者您曾经选择过)。所有设置都包含在那里(甚至是打开的文件)。

回答by Nate

I use rsyncfor this. Works great.

我为此使用了rsync。效果很好。