Now it may seem a little strange that I've posted it to this forum, but the problem you describe is typically solved using various
test and code coverage plugins/libraries that you can execute from
Ant or Maven (and often also just the command line).
I'd recommend looking for:
*
Emma (code coverage)
*
Clover (code coverage)
*
PMD (code complexity)
Also have a search for java cyclomatic complexity on Google, hope that all helps!
Now that I've listed all of this without mentioning Ant or Maven I realise that I've moved it incorrectly, I'll send it back now.