Eclipse coding style checks as an Ant Task?

In Eclipse I can set all kinds of preferences for coding style. I'd like to be able to enforce these as an ant task to make the build break.

Can anyone give me an example of how to enforce eclipse coding styles in an Ant task?

(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)

Answers


Try checkstyle (there is an eclipse plugin, and an ant task that produces reports. You can 'break' the build if you want).

http://checkstyle.sourceforge.net/


I'd like to plug eclipse into checkstyle - and use the eclipse style preferences - not the checkstyle preferences in eclipse.


Need Your Help

Who to get the text from ckeditor with visual basic

html vb.net editor ckeditor

I have a problem with the ckeditor and visual basic (using visual studio). I have an .html page with the scrip for use ckeditor, this part is ok, I use a webbrowser for navigate to the web, and can...

Invalid PostConstruct annotation

jsf postconstruct

I have a xhtml page and in it i use informations that stored in a backing bean. but i need do some operation in bean construction before xhtml use thats. the operation consist retrieve data from da...