eclipse(eclipse 发行版/项目/工作区)通过 Dropbox/SVN 在多个工作站上同步
我正在尝试设置 Eclipse 和项目/工作空间,以便在 3 台不同的计算机(不在同一 LAN 中)上顺利高效地工作。
现在我必须在每台计算机上执行此操作:
- 安装一个插件
- 自定义 eclipse.ini 自
- 定义首选项(我将 prefs.epf 保留在 \eclipse 文件夹内并小心保持同步)
我想避免它,所以我不会最终在不同的计算机上使用不同版本的插件等。为了实现这一目标,我决定如下:
\eclipse distribution
我打算将我的 \eclipse 发行版放在 Dropbox 下。原因是在我使用的 3 台计算机上使用完全相同的 eclipse 安装。
项目
项目(src 和所有资源等)通过使用 SVN/Hg 进行同步(我将一些项目放在一个项目下,其他项目放在另一个项目下)。这里没问题。 但同一个项目存储在不同计算机的不同驱动器/路径中(例如 C:\projects\projectA 和 D:\projectA)。
工作区
我为每个项目(或相关项目组)使用不同的工作区。所以我用
运行 eclipse-data \path-to-.metadata
,我应该把 worskpace 文件夹放在哪里,我要同步它们吗?我有两个选择:
我将工作区保留在 Dropbox 中,这样它们就会自动同步。但它会起作用吗?如前所述,同一项目可以位于两台计算机的不同驱动器/路径中。这是 这个 stackoverflow 人 采取的方法,但不确定他是否有 diff。驱动器等。
我将工作区保留在 Dropbox 之外,它们不同步。我的问题是,同一个 \eclipse 是否会打开 -data \workspaceAInComputerA ,然后再打开 -dataworkspaceAInComputerB ,它们具有相同的名称、项目等,但完全独立的工作区。
这听起来可能有点复杂,但我认为为了长期使用而正确设置它是值得的。有谁可以推荐一下配置吗?? 谢谢
ps:我不想一直随身携带 USB,所以请不要建议任何“便携式 eclipse”!
I am trying to setup eclipse and the project/workspaces to works smoothly and efficiently over 3 different computers (not in the same LAN).
Right now I have to do this in every computer:
- install a plugin
- customize eclipse.ini
- customize prefs (I'll keep prefs.epf inside \eclipse folder and keep it synched with care)
I would like to avoid it so I won't end up with different versions of plugins etc in different computers. In order to achieve this, I have decided the following:
\eclipse distribution
I intend to put my \eclipse distribution under Dropbox. The reason for that is to use the exact same eclipse install in the 3 computers I use.
Projects
Projects (src and all resources etc) are synched by using SVN/Hg (I keep some projects under one, others in the other). No problem here. But the same project is stored in different drive/path in different computers (C:\projects\projectA and D:\projectA for example).
Workspaces
I use a different workspace for each project (or group of related projects). So I run eclipse with
-data \path-to-.metadata
My question is, where do I put worskpace folders, and do I synch them?? I have two options:
I keep workspaces inside Dropbox, this way they are synched automaticaly. But will it work?? As pointed out previously the same project can be in diff drive/path in two computers. This is the approach taken by this stackoverflow guy, but not sure if he had diff. drives etc.
I keep workspaces outside Dropbox, they are NOT synched. My question here is whether the same \eclipse will open -data \workspaceAInComputerA and then later open -data workspaceAInComputerB having both same names, projects etc but being totally separate workspaces.
It sounds a bit convoluted maybe but I think it's worth setting it right for long term usage. Anyone can recommend a setup??
thanks
ps: I don't want to keep taking a usb with me so don't suggest any 'portable eclipse' thing please!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个人似乎把他的工作空间放到了 Dropbox 中为他工作。就我个人而言,我将整个 eclipse 目录 + 一些 sdk 放入保管箱中 - 我们将看看效果如何!
更新:这对我来说是非常错误的 - 只是要使用 svn/git
This guy seems to have put his workspaces in Dropbox and it seems to be working for him. Personally, I'm putting the Entire eclipse directory + some sdk's in dropbox - we'll see how that goes!
UPDATE: This went horribly wrong for me - just going to use svn/git