在Eclipse中全局设置资源过滤器 [英] Set resource filters globally in Eclipse

查看:400
本文介绍了在Eclipse中全局设置资源过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始从Eclipse外部使用git,并且在尝试编译隐藏的.git文件夹时遇到了自动构建功能方面的问题。此问题显示了如何根据每个项目排除它们。

I've started using git externally from Eclipse and have been running into issues with the auto-build functionality trying to compile the hidden .git folders. This question shows how to exclude them on a per project basis. Is there anyway to do this globally or per perspective?

推荐答案

目前没有这种可能性。

创建资源过滤器时,它会修改工作空间中项目文件夹的 .project 文件,但是我不建议手动创建这些过滤器,因为它们具有Eclipse生成的ID,您遇到问题的机会就更大。与将属性分别直接放置在配置文件中相比,最好将属性分别放置在每个项目中。

When you create a Resource Filter it modifies the .project file of your project folder inside the workspace, however I do not recommend creating those filters manually, since they have an ID generated by Eclipse and the chance that you have problems is greater. It is preferable to put the properties individually in each project than to do this directly in the configuration files.

@ brandizzi 在问题评论中说,有一个几年前就打开了bug ,但是eclipse在新版本的开发中并没有优先考虑此问题,它处理的是低优先级的改进,但是在我看来,这将是促进开发环境设置的另一个重要功能。

As @brandizzi said in the question comment, there is an open bug a few years ago but eclipse did not prioritize this in the development of the new versions, dealing with an improvement with low priority, however in my opinion would be another great feature to facilitate the settings of the development environment.

由于该工具非常好且免费,我们不能对此提出太多批评,但这是提示。 org / rel = nofollow noreferrer> Eclipse.org :

As the tool is very good and free we can not criticize much, but it's the tip for Eclipse.org:

这篇关于在Eclipse中全局设置资源过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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