eclipse java 不验证,如何在Eclipse Build期间忽略/防止javadoc文件夹的验证?

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

MikC5.jpg

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

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值