Java netbeans中的checkstyle插件,build.xml目标规范,用于生成约定冲突

Java netbeans中的checkstyle插件,build.xml目标规范,用于生成约定冲突,java,plugins,netbeans,checkstyle,build.xml,Java,Plugins,Netbeans,Checkstyle,Build.xml,我想通过向目标添加checkstyle来改进我的build.xml文件 我将checkstyle-5.5-all.jar添加到我的lib文件夹中。我还添加了一个checkstyle文件夹,其中包含checkstyle\u checks.xml 到目前为止,我有: 那就是这句话: <checkstyle config="checkstyle/checkstyle_checks.xml" classpath="${lib}/checkstyle-5.5-all.jar"> 我缺

我想通过向目标添加checkstyle来改进我的
build.xml
文件

我将
checkstyle-5.5-all.jar
添加到我的
lib
文件夹中。我还添加了一个checkstyle文件夹,其中包含
checkstyle\u checks.xml

到目前为止,我有:

那就是这句话:

<checkstyle config="checkstyle/checkstyle_checks.xml" classpath="${lib}/checkstyle-5.5-all.jar">

我缺少什么?

根据需要,必须是属性文件,而不是库目录:

<taskdef resource="checkstyletask.properties"
         classpathref="checkstyle.classpath"/>

<checkstyle config="checkstyle/checkstyle_checks.xml" classpath="${lib}/checkstyle-5.5-all.jar">
<taskdef resource="checkstyletask.properties"
         classpathref="checkstyle.classpath"/>