No output from Checkstyle in ANT -


i not using automated build tool. checkstyle 5.5 , ant 1.8. trying have checkstyle run in ant script. ant script executes without error, doesn't seem call checkstyle. no output except ant reports build successful. here ant script:

<project name="ccu" xmlns:cs="antlib:com.puppycrawl.tools.checkstyle">  <target name="checkstyle" description="generates report of code convention violations.">  <cs:checkstyle config="custom_check.xml"> <fileset dir="src" casesensitive="yes">   <include name="**/*.java"/> </fileset> <!--   <fileset dir="src" includes="**\*.java"/> --> </cs:checkstyle>  </target> </project> 

what missing?

it classpath problem. reason needed direct ant classpath class files not jar. final script looks this:

<project name="ccu" xmlns:cs="antlib:com.puppycrawl.tools.checkstyle">  <taskdef resource="checkstyletask.properties">         <classpath>                   <pathelement location="c:\myclasses\bin"/>                 <pathelement location="c:\checkstyle-5.5\checkstyle-5.5-all.jar"/>         </classpath> </taskdef>  <checkstyle config="custom_check.xml">    <fileset dir="src" includes="**/*.java"/>  </checkstyle>  </project> 

Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -