<! 产生javadoc >
<target name=javadoc depends=init>
<mkdir dir=${docapi}/>
<javadoc packagenames=${javadocpackage} sourcepath=${srccode}
private=yes defaultexcludes=yes destdir=${docdir}/api>
<classpath refid=classpath/>
</javadoc>
</target>
<! 编译Junit文件 >
<target name=compilejunit depends=compilesrc>
<mkdir dir=${distjunit}/>
<javac destdir=${distjunit} deprecation=on>
<src path=${srcjunit}/>
<classpath refid=classpath/>
<classpath refid=projlibs/>
</javac>
</target>
<! 运行checkstyle检查代码规范 >
<target name=checkstyle depends=init>
<checkstyle config=${checkstyleconfig}>
<fileset dir=${srccode} includes=**/*java/>
<formatter type=plain/>
<formatter type=xml toFile=${distroot}/checkstyle_errorsxml/>
</checkstyle>
</target>
[] [] [] []