我想build.xml
通过向我的目标添加 checkstyle 来改进我的文件。
我添加checkstyle-5.5-all.jar
到我的lib
文件夹中。我还添加了一个包含checkstyle_checks.xml
.
到目前为止,我有这个:
<taskdef resource="${lib.dir}" classpathref="checkstyle.classpath"/>
<checkstyle config="checkstyle/checkstyle_checks.xml" classpath="${lib}/checkstyle-5.5-all.jar">
<formatter type="xml" tofile="${checkstyle}/checkstyle_error.xml"/>
<fileset dir="${src}" includes="${src}"/>
</checkstyle>
我收到此错误:
Could not load definitions from resource lib. It could not be found.
就是这一行:
<checkstyle config="checkstyle/checkstyle_checks.xml" classpath="${lib}/checkstyle-5.5-all.jar">
我错过了什么?