如何在Eclipse Build期间忽略/防止javadoc文件夹的验证? [英] How to ignore/prevent javadoc folder from validation during Eclipse Build?

查看:1136
本文介绍了如何在Eclipse Build期间忽略/防止javadoc文件夹的验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的战争中是一个巨大的javadoc文件夹。由于javadocs是由Sun(Oracle)javadoc实用程序生成的,所以无法验证它。我已经忘记了我最后一次怎么做。我需要告诉Eclipse构建不要验证该特定的文件夹。



为什么我需要它:

1.由Sun javadoc生成的html实用程序不符合Eclipse使用的要求 - Eclipse中有一个错误报告,但是Eclipse回应说,Sun javadoc生成器不合规不是他们的错误,并且Eclipse打算坚持严格遵守。这导致在问题选项卡中列出了许多html错误。

2. javadoc文件夹是一个远程链接,该链接上的高活动正在使用我的cpu资源,并且因为它是一个链接到远程位置,cpu高活动持续很长时间,直到完成扫描整个35MB的Javadoc。



谢谢 - 需要帮助。


<你可以检查:


派生资源是资源这不是原始数据,并且可以从其源文件重新创建。派生文件通常被排除在某些种类的处理之外。


派生的资源可以影响 Eclipse资源过滤以及


诀窍是打开导航器查看,右键单击要忽略的文件夹,并检查派生属性。

此选项通知Eclipse该文件夹包含不应直接编辑的生成资源。

一旦完成,开放资源...视图将只显示与开发人员相关的匹配项。



In my war is a huge javadoc folder. There is no point in validating it since javadocs are produced by Sun(Oracle) javadoc utility. I have forgotten how I did it the last time. I need to tell Eclipse build not to validate that particular folder.

Reasons why I need it:
1. the html produced by Sun javadoc generation utility does not meet the requirement that Eclipse uses - there is a bug report in Eclipse but Eclipse responds that Sun javadoc generator non-compliance is not their fault and that Eclipse intends to stick to their strict compliance. Which results in lots of html errors listed in the problems tab.
2. the javadoc folder is a remote link and high activity on that link is using up my cpu resource, and because it is a link to a remote location, that cpu high activity is sustained for long time until it finishes scanning the whole 35MB javadocs.

Thanks - need help.

解决方案

Could you check the settings of your validator

it may have a setting allowing you to define an Exclude Group where you can add a rule to specify to exclude the validator for:

  • specific extensions,
  • folder or file name,
  • project nature,
  • facet or content type.

As the OP mentions in the comment, marking a folder as "derived" means it it will:

  • not be build during incremental build
  • only be build during full or manual build

As the article mentions:

Derived resources are resources that are not original data, and can be recreated from their source files. It is common for derived files to be excluded from certain kinds of processing.

Derived resources can influence Eclipse Resource Filtering as well:

The trick is to open the "Navigator" view, right click on the folder to be ignored, and check the "Derived" property.
This option informs Eclipse that this folder consists of generated resources that should not be directly edited.
Once this is done, the "Open Resource..." view will only show matches that would be relevant to the developer.

这篇关于如何在Eclipse Build期间忽略/防止javadoc文件夹的验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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