ssasa
ssasa

Reputation: 1615

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

Upvotes: 3

Views: 591

Answers (1)

soru
soru

Reputation: 5526

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.

Upvotes: 2

Related Questions