This post has NOT been accepted by the mailing list yet.
Could someone cut & paste an entire working ANT script configured to call checkstyle?
I'm trying to follow: this page, but I'm not having much success. What I see on that page are the important fragments, but I'd like to see it all together. I'm using ANT 1.8 and CS 5.5.
What environment variables need to be set?
This ANT script runs, but it gives me this error:
C:\ant.xml:15: Unable to create a Checker: cannot initialize module TreeWalker - Unable to instantiate com.lm.check.BreakToLabel
running ANT with -debug: verifies that ANT is finding the correct checkstyle jar. Also, there are messages "Finding class com.lm.check.BreakToLabel". If it finds it, why can't it run it? From searching around, a lot of people say that this is a CLASSPATH problem. My %CLASSPATH% is empty. The CLASSPATH is only defined in this script. What's the problem?
It runs fine from the command line. It runs fine with ANT using sun_checks.xml.