It'd be nice to have javac warning-free code.  Some modules are already
warning-free.  Are people ocay with enforcing this constraint (treating
warnings as errors) for modules that are already warning-free?

I found I could enforce this in one such lucene module (highlighter) by
simply adding this:

<property name="javac.args" value="-Werror -Xlint -Xlint:-deprecation
-Xlint:-serial"/>

The "-Werror" is the important part.  The rest of the line is copied from
common-build.xm.

~ David
-- 
Lucene/Solr Search Committer, Consultant, Developer, Author, Speaker
LinkedIn: http://linkedin.com/in/davidwsmiley | Book:
http://www.solrenterprisesearchserver.com

Reply via email to