我应该提交Eclipse更改过的文件吗? [英] Should I commit files that are changed by Eclipse?

查看:55
本文介绍了我应该提交Eclipse更改过的文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以Eclipse项目的形式继承了Java项目.在更改了Tomcat配置(从v6到v7)后,Subclipse提示我提交以下文件:

I inherited a Java project in the form of an Eclipse project. After changing the Tomcat configuration (from v6 to v7), Subclipse prompted me to commit the following files:

  • .classpath
  • org.eclipse.core.prefs
  • org.eclipse.common.project.facet.core.refs
  • org.eclipse.common.project.facet.core.xml

委派他们来帮助我的团队成员,还是会弄乱他们的工作空间?

Will commiting them help my team members or will it mess with their workspace?

什么是最佳实践方法?

推荐答案

一般来说,您应该检入(并在更改后提交)所有有助于构建的内容,并且不能通过完全重新构建而重新生成,并且是特定于工作站的.(此声明的含义取决于您的构建过程/过程,这是有意的.)

Generally speaking, you should check-in (and commit after changes) everything that does contribute to the build AND is not re-generateable by re-building completely AND is workstation-specific. (The implications of this statement depend on your build process/procedure, which is intended.)

这意味着您应该排除在完全构建后重新生成的所有内容,以便不进行检入(也不提供检入).

This implies you should exclude everything that is re-generated upon full build etc. so it is not checked in (and not offered for check-in).

这篇关于我应该提交Eclipse更改过的文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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