How to ignore / prevent javadoc folder check during Eclipse build?

In my war, a huge javadoc folder. There is no point in checking it, because javadocs are created by Sun's javadoc utility (Oracle). I forgot how I did it the last time. I need to say that Eclipse build does not check this specific folder.

Reasons why I need it:
1. The html created by the Sun javadoc generation utility does not meet the requirements that Eclipse uses - there is an error report in Eclipse, but Eclipse says that non-compliance with the Java javadoc generator is not their error and that Eclipse intends to adhere to their strict compliance, Which leads to many html errors listed on the problems tab.
2. the javadoc folder is a remote link, and the high activity on this link uses my processor resource, and since it is a link to a remote location, this high processor activity lasts a long time until it finishes scanning all 35 megabyte javadocs.

Thank you - I need help.

+4
source share
1 answer

Could you check your validator settings

Global preferences

it may have a parameter that allows you to define an Exclude Group , where you can add a rule to specify to exclude a validator for:

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

As the OP points out in the comment, marking the folder as “derivative” means that it will be:

  • do not build during incremental build
  • create only during full or manual assembly

The article mentions :

Derived resources are resources that are not source data and can be recreated from source files. Usually derived files are excluded from certain types of processing.

Derived resources can affect Eclipse Resource Filtering :

The trick is to open the Navigator view, right-click on the folder that you want to ignore, and check the Derivatives property.
This parameter tells 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 will be relevant to the developer.

+5
source

Source: https://habr.com/ru/post/1306601/


All Articles