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/


Need Your Help

Uncaught SyntaxError Mutiple Appends

jquery append

I have having problems appending more then one object to a UL list. The error shows on line 68 which is sepratedly commented out

Use a VBS to edit ini for users %appdata% folder

for-loop vbscript edit ini appdata

I have script that edits the a line in the ini file, which sits on users %Appdata% folder i.e C:\Users\<>\AppData\Roaming.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.