Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exclude .java files from validation in Eclipse

In my source tree have Java code which is automatically generated from XSD files. This code is full of warnings which is messing other legitimate warnings. How do I exclude such folders or packages from validation?

Have read several similar questions, but those suggest to exclude folders from appropriate validator types found in Preferences. However I can't find validator for .java files.

Any help would be appreciated. Thanks!

Sasa

like image 649
ssasa Avatar asked Aug 06 '26 19:08

ssasa


1 Answers

You need the feature 'ignore optional compiler problems' from the very latest eclipse milestone:

http://download.eclipse.org/eclipse/downloads/drops4/S-4.2M6-201203151300/eclipse-news-M6.html

Might be a workaround possible without that, like putting the auto generated files in a different project. But what you want to do is exactly the intended use of that feature.

like image 73
soru Avatar answered Aug 08 '26 09:08

soru



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!