Java Eclipse - 多个人可以在一个项目上工作吗
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10259181/
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
Java Eclipse - Can multiple people work on one project
提问by
Hi guys I wanted to know can me and my other friend programmer work on same project with Eclipse synchronizing it or we need to share the src every 10 minutes. I don't know what should I search for on Google/any_other_engine so I'm asking here. Thanks
大家好,我想知道我和我的其他朋友程序员是否可以使用 Eclipse 同步同一个项目,或者我们需要每 10 分钟共享一次 src。我不知道我应该在 Google/any_other_engine 上搜索什么,所以我在这里问。谢谢
采纳答案by Bruno
You can certainly use the "Team" menu, which gives you access to version control systems. I would recommend Git or Mercurial (Distributed Version Control Systems).
您当然可以使用“团队”菜单,它可以让您访问版本控制系统。我会推荐 Git 或 Mercurial(分布式版本控制系统)。
EGit/JGitare now part of the mainstream plugins: you can install them using the "Indigo" repository (assuming Eclipse 3.7) in "Install new software...".
EGit/JGit现在是主流插件的一部分:您可以使用“安装新软件...”中的“Indigo”存储库(假设 Eclipse 3.7)安装它们。
Centralised Version Control Systems (like CVS or SVN) also have plugins for Eclipse. They might, however, make it more difficult to branch and merge conflicts when required.
集中式版本控制系统(如 CVS 或 SVN)也有 Eclipse 插件。但是,它们可能会使在需要时分支和合并冲突变得更加困难。
回答by Marc-Christian Schulze
You are looking for a version control system (VCS) like CVS, SVN, Git, Mercurial, etc.
您正在寻找版本控制系统 (VCS),如 CVS、SVN、Git、Mercurial 等。
回答by Subhrajyoti Majumder
SVN or CVS - kind of version controlling system will help u to work together or u want to maintain your repository online then kindly check out https://stackoverflow.com/questions/59791/free-online-private-svn-repositorieslink.
SVN 或 CVS - 一种版本控制系统将帮助您一起工作,或者您想在线维护您的存储库,然后请查看https://stackoverflow.com/questions/59791/free-online-private-svn-repositories链接。
回答by Stephen C
It seems like you are asking if Eclipse has support for sharing workspaces so that you and your friend can (in essence) cooperatively edit and run the same set of java files in real time.
您似乎在问 Eclipse 是否支持共享工作区,以便您和您的朋友可以(实质上)实时协作编辑和运行同一组 java 文件。
Something like this - http://www.readwriteweb.com/cloud/2011/07/cloud9s-web-based-real-time-co.php
像这样的东西 - http://www.readwriteweb.com/cloud/2011/07/cloud9s-web-based-real-time-co.php
The answer is No. Eclipse doesn't support this directly.
答案是否定的。Eclipse 不直接支持这一点。
However, there is an Eclipse plugin / project called Sarosthat claims to do this. And the Saros site has links to related projectsthat may be relevant.
但是,有一个名为Saros的 Eclipse 插件/项目声称可以做到这一点。Saros 网站上有可能相关的相关项目的链接。
(FYI - the relevant search terms are "collaborative programming".)
(仅供参考 - 相关搜索词是“协作编程”。)
回答by tbraun89
This is what you need: http://en.wikipedia.org/wiki/Revision_control
这就是您所需要的:http: //en.wikipedia.org/wiki/Revision_control
回答by Ashish Agarwal
I use SVN Notifierwhich sits in the system tray and notifies me every time the repository changes. And I can highly recommend it. It means you only update when there's something to update!
我使用位于系统托盘中的SVN Notifier并在每次存储库更改时通知我。我强烈推荐它。这意味着你只在有东西要更新时才更新!
Alternatively you can set up a scheduled task/cron job to run svn update
in the appropriate directory every hour/day/whatever.
或者,您可以设置计划任务/cron 作业,以svn update
每小时/每天/任何时间在适当的目录中运行。
refer this Microsoft articleon setting up a scheduled task.
请参阅有关设置计划任务的这篇 Microsoft 文章。
You want a batch file called svnUpdate.bat or something which looks like this:
您需要一个名为 svnUpdate.bat 的批处理文件或类似以下内容的文件:
cd C:/path/to/your/working/copy
svn update
Get the scheduled task to run this as often as you like (once an hour seems sensible)
获取计划任务以随心所欲地运行它(每小时一次似乎是明智的)
Make sure you have the command line version of svn installed (I use SlikSvn) and available on your PATH (in a command window type svn
and ensure it says 'Type svn help...' or similar.
确保您安装了 svn 的命令行版本(我使用SlikSvn)并且在您的 PATH 中可用(在命令窗口类型中svn
并确保它显示“键入 svn help...”或类似内容。