哪个eclipse项目/工作区文件应该添加到源代码控制? [英] which eclipse project/workspace files should be added to source control?

查看:126
本文介绍了哪个eclipse项目/工作区文件应该添加到源代码控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过SVN与我的其他团队分享一个eclipse项目。我应该添加哪些文件到subversion?在工作空间中,有许多文件,IMHO不应该是源代码控制 - 它们的大小是几兆字节。



当仅添加项目,另一个用户签出代码仍然必须将项目导入工作区。



编辑: / strong>可能是正确的问题,我如何使用subversion分享我的eclipse 工作区

解决方案

p>使用Eclipse,您始终必须导入项目 - 没有其他方法可以实现 - 如果您只是切换工作区,Eclipse将无法检测项目,除非您之前已经在该工作区中创建/导入了项目。



您最终需要




  • .project

  • .classpath



我个人还会添加设置文件夹,但由您自己决定:




  • .settings



然后其他你请选择导入项目并选择 .project 文件。


I want to share an eclipse project with the rest of my team through SVN. Which files should I add to subversion? In the workspace, there are many files which IMHO are not supposed to be on source control - they are a few megabytes in size.

When adding just the project, another user who checks out the code still has to import the project into the workspace.

Edit: maybe the correct question here, is how can I share my eclipse workspace using subversion?

解决方案

With Eclipse, you always have to import a project - there is no other way to do it - Eclipse won't detect projects if you just switch workspaces unless you've created/imported the project in that workspace before.

You will need at a minimum:

  • .project
  • .classpath

Personally I also add the settings folder, but its up to you:

  • .settings

Then other users choose Import project and select the .project file.

这篇关于哪个eclipse项目/工作区文件应该添加到源代码控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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