如何不签入 Eclipse 特定项目文件?
我不想强迫人们使用特定的 IDE 进行开发,所以我们的项目基本上是这样的:
- SomeProject
- 来源
- 库
- build.xml
没有任何 IDE 特定文件。
然而,许多人更喜欢 Eclipse,他们抱怨说,如果将 Eclipse 项目签入 VCS,那么从 Ant 构建文件中设置 Eclipse 项目会非常困难。这是一个非常老的错误,所以我真的不期待它很快就会修复。
我不希望项目根目录中包含所有这些奇怪的 Eclipse 项目文件,但如果这是唯一的方法,我会接受将 Eclipse 项目文件放在子目录“eclipse”中。我认为 Eclipse 的链接资源能够做到这一点,但我错了,它实际上不起作用。
你如何解决这个问题?您是否正在检查 .settings 目录?等进入你的项目的根目录?
I don't want to force people into using a specific IDE for development, so our projects look basically like this:
- SomeProject
- src
- lib
- build.xml
No IDE specific files whatsoever.
However, many people prefer Eclipse and it is their valid complain that it is annoyingly difficult to set up an Eclipse project from an Ant build file if that project is checked into a VCS. That's a very old bug, so I don't really expect it to be fixed soon.
I don't want all those weird Eclipse project files in the project root, but if it was the only way, I would accept having the eclipse project files in a subdirectory "eclipse". I thought Eclipse's linked resources were capable of just that, but I was wrong, it doesn't really work.
How do you solve this problem? Are you checking in the .settings directory. etc. into your project's root?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我不想要 CVS 或 SVN 中的某些文件,我会将它们添加到忽略的文件中(上下文菜单 > 团队 > 添加到 SVN/CVS 忽略)。您可能必须启用在包资源管理器中查看它们(视图右上角的小三角形 > 过滤器 > 取消选中 .* 资源)。不过,我通常会签入它们,因为它们是隐藏文件,如果您不需要它们,它们不会造成太大干扰,但如果您需要它们,它们确实很有用。
If I don't want certain files in the CVS or SVN I add them to the ignored files (Context menu > Team > Add to SVN/CVS ignore). You might have to enable seeing them in the Package Explorer (little triangle in the upper right corner of the view > Filters > uncheck .* resources). I usually check them in though, as given they are hidden files they don't disturb much if you don't need them but are really useful if you do.