1 Reply Latest reply on Jun 8, 2011 9:19 AM by EJP

    ant checkstyle java code review report


      I have created the below task in build.xml, all the jars are included.

      I am getting below error , please suggest what need to be sone

      WebContent\WEB-INF\build.xml:58: taskdef class com.puppycrawl.tools.checkstyle cannot be found

      <target name = "antCheckStyle">
                <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle" classpathref="build.classpath" />
                <checkstyle config = "${basedir}/lib/checkstyle_allchecks.xml" failOnViolation="false" >
                     <fileset dir="${basedir}/src" includes="**/*.java"/>
      <formatter type="xml" toFile="${basedir}/checkstyle_errors.xml"/>