Eclipse (Java): Central “treat warnings as errors”

Is there a way to enable treat “treat warnings as errors” (or something similar that has the same effect) from a central location in eclipse?

I have already found Project Properties -> Errors/Warnings where I can change the error level for each individual warning (with corresponding effect in the Problems View). However I’d like to keep warnings being shown as warnings but have them prevent a sucessfull compile.

Answer

Have your own ant script for compile and build and check this link (-Werror flag)
Javac: Treat warnings as errors

Leave a Reply

Your email address will not be published. Required fields are marked *