您现在的位置是:首页 >

编译错误和运行错误 使用Ant编译、运行Junit、以及检查编码[3]

火烧 2022-07-08 11:54:52 1052
使用A t编译、运行Ju it、以及检查编码[3] lt ! 产生javadoc gt lt target ame= javadoc de e d = i it gt lt mkdir dir= ${

使用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]

    <! 运行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  
永远跟党走
  • 如果你觉得本站很棒,可以通过扫码支付打赏哦!

    • 微信收款码
    • 支付宝收款码