Ant, separating warnings and errors -
while compiling using ant, java application gives more 1000 warnings (mainly deprecated api related legacy code) , difficult find error message(s) mixed thousands of warnings messaged in log.
i tried suppressing warnings passing arguments in ant javac task, didn't work.
is there options separate warnings , errors in log, warnings first , errors?
the warnings displayed javac, ant forwarding them console. ant cannot distinguish them between javac warnings , errors. can configure javac warning output. can use attribute 'nowarn' in javac tasks.
<javac nowarn='on' .... />
you can select warning let suppress. have javac documentation (look @ xlint options), , use 'compilerarg' element of javac task.
<javac .... > <compilerarg line="-xlint:-deprecation"/> </javac>
Comments
Post a Comment