哪个eclipse项目/工作区文件应该添加到源代码控制? [英] which eclipse project/workspace files should be added to source control?
问题描述
当仅添加项目,另一个用户签出代码仍然必须将项目导入工作区。
编辑: / 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屋!