当与CVS存储库同步时,Eclipse可以忽略.cvsignore文件吗? [英] Can Eclipse ignore .cvsignore files when synchronizing with a CVS repository?

查看:256
本文介绍了当与CVS存储库同步时,Eclipse可以忽略.cvsignore文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与团队环境合作,在不同的开发人员之间组合IDE。有些使用Eclipse,其他NetBeans,其他IntelliJ等。代码项目都是围绕Maven构建的,所以没有人关心你使用哪个IDE,只要它可以与Maven一起玩。



为此,我们不应该将任何IDE特定的文件(例如.project,.classpath)提交到CVS存储库。我相信这第二部分可能是过度的...但是我们也不应该提交我们的.cvsignore文件,其中包含单个IDE特定文件的过滤器。



每次与存储库同步时,我的.cvsignore文件周围都有一点点麻烦。有没有办法阻止Eclipse在团队同步视角中显示这些文件?

解决方案

您可以添加模式到窗口 - >首选项 - >团队 - > CVS - >忽略资源。这应该导致Eclipse Team CVS在提交时忽略该文件。


I am working with a team environment with a heterogeneous blend of IDE's among different developers. Some use Eclipse, others NetBeans, others IntelliJ, etc. The code projects are all structured around Maven... so nobody cares which IDE you use as long as it can play with Maven.

To that end, we're not supposed to commit any IDE-specific files (e.g. ".project", ".classpath") to the CVS repository. I believe that this second part may be overkill... but we're also not supposed to commit our ".cvsignore" files, which contain filters for our individual individual IDE-specific files.

It's a bit of a hassle dodging around my ".cvsignore" files every time I sync with the repository. Is there a way that I can prevent Eclipse from displaying those files in the "Team Synchronizing" perspective?

解决方案

You can add patterns to Window -> Preferences -> Team -> CVS -> Ignored Resources. This should cause Eclipse Team CVS to ignore the file when commiting.

这篇关于当与CVS存储库同步时,Eclipse可以忽略.cvsignore文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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