在 Windows 和 Mac OS X 之间共享 Dropbox 上的 Eclipse 目录
这个问题和我的很接近,但又不完全一样。
我有一台 Windows 台式机和一台 MacBook Pro。我希望能够将 Eclipse 工作区保留在我的 Dropbox 文件夹中。问题是许多项目设置在平台之间发生变化:对 JRE、JDK 和其他库的引用。
我看到的关于这个问题的每一次讨论似乎都建议利用源代码控制系统的忽略功能,以便这样那样的文件保持仅限于本地,从而能够保持特定于平台。但是,当您使用真正的单个共享文件夹时,此类解决方案并不适用。
您是否有幸使用过通过网络跨平台共享的单个文件夹中的 Java Eclipse 项目?
This question was close to mine, but not quite.
I have a Windows desktop and a MacBook Pro. I'd like to be able to keep my Eclipse workspace in my Dropbox folder. The problem is that many project settings change between platforms: references to JREs, JDKs, and other libs.
Every discussion I've seen of this problem seems to suggest taking advantage of the source control system's ignore functionality, so that such-and-such file remains local-only and thus able to remain platform-specific. But when you're working with a real single shared folder, that class of solution doesn't apply.
Have you had luck working with a Java Eclipse project living in a single folder shared over the network, cross-platform?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我的 Eclipse 工作区位于 Dropbox 内,其中包含所有项目文件夹,但使用 Dropbox 的新“选择性同步”功能来确保 .metadata 文件夹不同步。
这意味着我的 Mac 和 Windows 计算机都有自己的 .metadata 文件夹,但项目文件夹保持同步。
到目前为止似乎正在工作......
I have my Eclipse workspace inside Dropbox with all my project folders within, but use the new-ish "Selective Sync" feature of Dropbox to make sure that the .metadata folder is not synced.
This means my Mac and Windows machines have their own .metadata folders but the project folders remain in sync.
Seems to be working so far...
对各个工作区使用源代码管理。通过这种方式,您将失去两个开发人员对同一文件进行更改的能力。人们互相踩踏的风险也更高。使用 Subversion(或其他)源代码控制是免费的,并为您提供可追溯性。
Use source control with individual workspaces. By doing it this way you lose the capability of two developers making changes to the same file. You also run a higher risk of people stepping on each other. With Subversion (or others) source control is free and gives you traceability.
也许减少问题的方法就是共享源文件夹,而不是工作区设置或 bin 文件夹。
只需将源文件夹放入 Dropbox 即可。
在 site1 上创建项目,然后:
右键单击
项目
,选择属性
-->
Java 构建路径
-->源选项卡
--> L
墨水来源按钮
然后在 Dropbox 中创建指向源文件夹的链接并为其指定一个名称(例如 src2),
对 site2 进行相同的操作。
您的所有源文件必须位于 Dropbox 中的共享源文件夹中。
当然,您必须在每个站点上配置库和其他内容等设置,但此任务不太频繁,而且可能是可取的,因为您有两个不同的环境。
Perhaps the way to have less problems is just to share the source folder, neither workspace settings nor bin folder.
Just put your source folder in Dropbox.
Create the project on site1 and then:
Right click over the
project
, chooseproperties
-->
Java Build path
-->Source tab
--> L
ink source button
Then create a link to your source folder in Dropbox and assign it a name (e.g. src2)
Make the same for site2.
All your source files must be in your share source folder in Dropbox.
Of course you must configure on each site the settings like libraries and other stuff but this task is less frequently and perhaps desirable because you have two different environments.
对于其他无法正常工作的人,请尝试
文件->导入->常规->文件系统
。请务必从高级选项
中选择在工作区中创建链接
。看起来是更干净的解决方案,您可以继续使用常用的工作空间。For anyone else having trouble getting this to work, try
File->Import->General->File System
. Be sure to selectCreate links in workspace
from theAdvanced options
. Seems like the cleaner solution and you can keep using your usual workspace.