What is Macker?
Macker is a Java developers’ utility which checks classes against user-defined structural rules. It’s meant to model the architectural ideals programmers always dream up for their projects, and then break — it helps keep code clean and consistent. You can use it to check general “good practice” rules, and you can also tailor a rules file to suit a specific project’s structure. Macker operates on compiled Java classes. It usually runs in your build process just after javac, but you could also make it part of your unit testing or packaging process if you like. It is available as an Ant task and as a command-line utility, both of which read an XML rules file format. It also has some Java APIs which you can use directly, though they will not be guaranteed stable until the 1.0 release.