在Eclipse中排除/禁用验证 [英] Excluding/Disabling Validation in Eclipse

查看:147
本文介绍了在Eclipse中排除/禁用验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大的项目源代码基础,我主要从事PHP和JavaScript工作。我必须将完整的项目区域作为Eclipse中的项目根,但不幸的是,这包括几个驱动WST / DLTK /等内置验证的目录。坚果。



我已尝试禁用项目属性中的所有验证器。我一次进入一个验证器,并将规则添加到排除组,以排除特定的文件夹。我从项目属性中的PHP构建路径中删除了这些文件夹。但是,我的问题视图/标签仍然散布着数千个红旗,主要来自我们用来保存外部元素(Apache,PHP等)的文件夹。你知道,典型的有一个我们目前使用的具体版本的副本一些事情。



信噪比非常糟糕,我无法使用视图,这是一个耻辱。如果我不会有IDE的好处,那么我也可以使用vim来实现这一点(我用它来代替其他的东西,但是对于这个代码库来说,一个好的IDE是一个更好的选择,我可以让它工作)。在我看来,能够右键单击项目中的文件夹并选择从验证排除是一个明显的功能,但是没有这样的功能。有没有办法让验证器(PHP,HTML等)忽略我需要忽略的文件夹?

解决方案

解决方案;


  1. 右键单击项目

  2. 选择属性

  3. 选择验证

  4. 选中启用项目特定设置

  5. 在XML验证器行中,单击...按钮

  6. 选择排除Gruop

  7. 点击添加规则

  8. 选择'文件夹或文件名'


  9. 选择未验证的文件或文件夹。

  10. 单击完成

  11. 单击确定

  12. 单击确定

这解决了我的问题。因为eclipse验证为生成的GWT文件提供错误。



最好的问候。


I have the (mis)fortune of having a large project source-base in which I am working primarily on PHP and JavaScript. I have to have the full project area as the project root in Eclipse, but unfortunately this includes several directories that drive the validation built into WST/DLTK/etc. nuts.

I have tried disabling all validators in the project properties. I have gone into the validators one at a time and added rules to the "Exclude Group" set to exclude the specific folders. I have removed the folders from the PHP build path in the project properties. And yet, my Problems view/tab is still littered with thousands of red flags that stem mostly from a folder that we use to keep copies of external elements (Apache, PHP, etc.). You know, typical "have a copy of the specific versions we currently use" sort of thing.

The signal-to-noise ratio is so bad that I'm unable to use the view at all, which is a shame. If I'm not going to have the benefits of the IDE, I might as well be using vim for this (I use it for other stuff, but for this codebase a good IDE is a better choice, providing I can get it to work). It seems to me that it would be an obvious feature to be able to right-click a folder in a project and select "Exclude from Validation", but alas there is no such feature. Is there another way to get the validators (PHP, HTML, etc.) to ignore the folders I need ignored?

解决方案

Tried solution;

  1. Right click project
  2. Select properties
  3. Select validation
  4. Check Enable Project specific settings
  5. On the XML Validator row, click the '...' button
  6. Select Exclude Gruop
  7. Click Add rule
  8. Select 'Folder or file name'
  9. Click Next
  10. Select files or folder which are not validated.
  11. Click Finish
  12. Click OK
  13. Click OK

This solved my problem. Because eclipse validation gives error for generated GWT files.

Best regards.

这篇关于在Eclipse中排除/禁用验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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