Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse Java Compiler Warnings as ant task
    primarykey
    data
    text
    <p>I want the eclipse Java Compiler Warnings available as an ant task (ie without eclipse) - ideally as ant plugins - but I want the cruise control ant task to fail if an eclipse warning shows up. For the following warnings</p> <ul> <li><p>Non-static access to static member</p></li> <li><p>Method with a constructor name</p></li> <li><p>Serializable class without serialVersionUID</p></li> <li><p>Assignment has no effect</p></li> <li><p>finally does not complete normally</p></li> <li><p>Using a char array in string concatenation</p></li> <li><p>Hidden catch block</p></li> <li><p>Inexact type match for vararg arguments</p></li> <li><p>Null pointer access</p></li> <li><p>Type parameter hides another type</p></li> <li><p>Method does not override package visible method</p></li> <li><p>Interface method conflicts with protected 'Object' method</p></li> <li><p>Local variable is never read</p></li> <li><p>unused local or private member</p></li> <li><p>Unchecked generic type operation</p></li> <li><p>Usage of a raw type</p></li> <li><p>Generic type parameter declared with a final type bound</p></li> <li><p>Annotation is used as a super interface</p></li> </ul> <p>I assume this means that the eclipse abstract syntax tree would have to be used - and an eclipse compilation unit would have to be created. </p> <p>The question is: (1) Has this been done? (2) If it hasn't - then given a </p> <pre><code>org.eclipse.jdt.core.dom.CompilationUnit </code></pre> <p>object - how do you (ie in code examples) get the warnings out of this CompilationUnit?</p> <p>(I KNOW about PMD, checkstyle etc - none of these EXACTLY match the eclipse preferences for coding style. I want an ant task that exactly matches the eclipse coding style)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload