【发布时间】:2012-03-27 03:18:25
【问题描述】:
我没有使用自动构建工具。只需 Checkstyle 5.5 和 ANT 1.8。 我正在尝试在我的 ANT 脚本中运行 Checkstyle。 ANT 脚本执行没有错误,但似乎没有调用 Checkstyle。除了 ANT 报告 BUILD SUCCESSFUL,我没有得到任何输出。 这是我的蚂蚁脚本:
<project name="ccu" xmlns:cs="antlib:com.puppycrawl.tools.checkstyle">
<target name="checkstyle" description="Generates a 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>
我错过了什么?
【问题讨论】:
标签: ant checkstyle