For this to work, you'll need to have checkstyle's jar, regexp and antlr in your Ant lib directory or classpath. I'm using the CVS version of checkstyle, which is now built by Gump.
I usually modify the "tocheck" property to focus in on one or two classes. If you run this as is, it will take a while and report ~13000 violations over the whole Ant tree.
Conor
<project default="checkstyle" name="CheckAnt"> <property name="java.dir" value="src/main"/> <property name="tocheck" value="**/*.java"/>
<target name="checkstyle">
<taskdef name="checkstyle"
classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"/>
<checkstyle ignoreCastWhitespace="true">
<fileset dir="${java.dir}">
<include name="${tocheck}"/>
</fileset>
</checkstyle>
</target>
</project>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
