如何使用Dropbox在多个平台之间保持Eclipse安装同步? [英] How to keep an Eclipse installation in sync between multiple platforms with Dropbox?

查看:115
本文介绍了如何使用Dropbox在多个平台之间保持Eclipse安装同步?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在每个机器上设置Eclipse我真的很头疼,我想保持几个机器之间的Eclipse文件和配置不同步。



我想在OS X,Linux和Windows上保持Eclipse同步,所以我开始获取OS X版本的eclipse,因为它具有OS X所需的应用程序,另外两个平台更容易启动它。



我有什么问题/问题:




  • 我不应该同步吗?

  • 在哪里可以放置JDBC jar文件,以便它们同步?有没有办法使用相对路径加载?



任何成功案例?



注意:这不是让项目自己同步,因为这是所有的SCM混合。

解决方案

您无法共享Eclipse安装目录或工作区,但项目本身可以使用cvs,svn,git等版本管理系统轻松保持同步。我想您可以将项目内容存储在Dropbox文件夹中或类似的文件系统同步机制),然后只要在使用这些项目的机器上坐下来强制刷新,但我从未尝试过,并且会警惕人为错误可能导致文件丢失或损坏。 / p>

关键是,虽然工作区本身不能共享,但项目并不需要位于文件系统的工作空间文件夹下。这是因为工作空间是项目的逻辑容器,不一定是物理容器。创建项目时,可以为项目内容指定任意文件系统位置。默认情况恰好在工作区的位置。在每台机器上,您将有一个单独的工作区,从您将文件系统同步的任何位置导入项目。这样一来,工作空间就是一个小容器,在每台机器上都不需要很多的维护。我一直在本地做 - 我的机器上有多个工作空间,其中一些包括与其他工作相同的项目。


Setting up Eclipse on each machine I work it a real headache and I want to keep the Eclipse files and configuration in-sync between several machines.

I want to keep Eclipse in sync on OS X, Linux and Windows so I started getting the OS X version of eclipse because it has the app needed for OS X, as for the other two platforms it's easier to launch it.

What questions/problems I have:

  • What should I not sync?
  • Where can I put JDBC jar files so they are synced too? Is there a way to load them using a relative path?

Any success stories?

Note: this is not about getting the projects themselves in sync, for this there are all blends of SCM.

解决方案

You can not share the Eclipse installation directory or the workspace, but the projects themselves are easy to keep in sync using a version management system like cvs, svn, git, etc. I suppose you could store your project contents in a Dropbox folder (or similar file system syncing mechanism) and then just force Refresh when you sit down at a machine that was using those projects, but I've never tried it and would be wary that human error could lead to lost work or corruption of files.

The key is that, although workspaces themselves can't be shared, projects don't have to be located physically under the workspace folder on your file system. That's because the workspace is a logical container for projects, not necessarily a physical container. When creating a project you can specify an arbitrary file system location for the project contents. The default just happens to be under the workspace location. SO on each machine you'd have a separate workspace that imported the project(s) from wherever you are syncing them on your file system. That way the workspace is a tiny container that doesn't require much ongoing maintenance on each machine. I do this locally all the time - I have multiple workspaces on my machine, some of which include the same projects as others.

这篇关于如何使用Dropbox在多个平台之间保持Eclipse安装同步?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆