在Eclipse中为许多开发人员共享一个工作区 [英] Sharing a workspace for many developers in Eclipse

查看:120
本文介绍了在Eclipse中为许多开发人员共享一个工作区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Eclipse(Helios或Indigo)中共享工作区,以便许多开发人员可以在一个项目中工作?



我知道SVN,但是我不想使用它



你可以专家建议一个简单的解决方案吗?

解决方案

绝对使用源代码控制,无论是SVN,Git还是其他。这绝对是管理您的项目的最佳方法,并阻止您的开发人员踩在彼此的脚趾上。



您能否解释您反对源代码控制? p>

如果您真的在寻找一个快速的解决方案,那么只需将项目置于共享网络文件夹中即可。一个人可以在该位置设置项目,并且将在该目录中创建 .project 文件(和其他)。然后,每个开发人员在他或她自己的工作站上都​​将安装Eclipse。他们可以从共享文件夹中导入现有项目。这意味着所有开发人员都在同一时间编辑相同的文件。它会工作,但如果两个人同时尝试编辑相同的文件,您将会遇到问题(一个人的编辑肯定会丢失)。源代码管理存在以避免这样的问题。



编辑:注意共享项目和共享工作区之间的区别。您不能在多人之间共享工作区;每个开发人员应该将他们自己的工作区本地保存在他们的电脑上。您可以共享一个项目,每个工作区将分别指向。


How can I share a workspace in Eclipse (Helios or Indigo) so that many developers are able to work in one project?

I know about SVN but I don't want to use that.

Can you experts suggest a simple solution?

解决方案

You should absolutely use source control, whether it be SVN, Git, or something else. This is definitely going to be the best way to manage your project and prevent your developers from stepping on each others toes.

Can you explain your opposition to source control?

If you really are looking for a quick solution, how about just having the project in a shared network folder. One person can set up the project in that location, and the .project file (and others) will be created in that directory. Then each developer, on his or her own workstation will have an installation of Eclipse. They can then 'import' the existing project from the shared folder. This will mean that all developers are editing the same files at the same time. It will work, but you will have issues if two people try editing the same files at the same time (one person's edits will surely be lost). Source control exists to avoid issues like this.

EDIT: Note the distinction between sharing a project and sharing a workspace. You cannot share a workspace between multiple people; each developer should have his or her own workspace locally saved on their computers. You can share a project, which each separate workspace will point to.

这篇关于在Eclipse中为许多开发人员共享一个工作区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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