编译错误和运行错误 使用Ant编译、运行Junit、以及检查编码[3]
使用Ant编译、运行Junit、以及检查编码[3]
<! 产生javadoc > <target name= javadoc depends= init > <mkdir dir= ${doc api} /> <javadoc packagenames= ${javadoc package} sourcepath= ${src code} private= yes defaultexcludes= yes destdir= ${doc dir}/api > <classpath refid= classpath /> </javadoc> </target>
<! 编译Junit文件 > <target name= pilejunit depends= pilesrc > <mkdir dir= ${dist junit} /> <javac destdir= ${dist junit} deprecation= on > <src path= ${src junit} /> <classpath refid= classpath /> <classpath refid= proj libs /> </javac> </target>
![编译错误和运行错误 使用Ant编译、运行Junit、以及检查编码[3]](http://img.zhputi.com/uploads/fa92/fa9272eaf70ee044bcf2c3e07da8524b8320.jpg)
<! 运行checkstyle检查代码规范 > <target name= checkstyle depends= init > <checkstyle config= ${checkstyle config} > <fileset dir= ${src code} includes= **/* java /> <formatter type= plain /> <formatter type= xml toFile= ${dist root}/checkstyle_errors xml /> </checkstyle> </target>
lishixinzhi/Article/program/Java/ky/201311/29293