???????????

????????????????е????????????????????????????磬?????????б????Щ??????裬?????????ó????????????????????????????ι?????????????????????????????????????????ι??????μ?????????????????"???"??????????????

?????????????????????????????????????κ???????????μ???????????????????????????????衣???????????????????裬??????????????????????????嵥 5 ??????????? delete Ant ?????????????????????????????????????????????????????????

?????嵥 5. ????????

<target name="clean">
??<delete dir="${logs.dir}" quiet="true" failonerror="false"/>????
??<delete dir="${build.dir}" quiet="true" failonerror="false"/>????
??<delete dir="${reports.dir}" quiet="true" failonerror="false"/>????
??<delete file="cobertura.ser" quiet="true" failonerror="false"/>????
</target>

???????????????????????????????????o????????鷳???????????????????????????????????????????????????κι?????

???????????ζ

????????-?????????а????????????????????γ????????????????????????????????????????????????????????????????????????????????????????????????????и?????????????????????????????????????????ε???????????????????飬????????????????????????????????????????????????????????????????????????

???????磬???嵥 6 ?У?run-simian ?????к????????·????????? _reports ????

?????嵥 6. ???????

<target name="run-simian">
??<taskdef resource="simiantask.properties"
????classpath="simian.classpath" classpathref="simian.classpath" />
??<delete dir="./_reports" quiet="true" />
??<mkdir dir="./_reports" />
??<simian threshold="2" language="java"
????ignoreCurlyBraces="true" ignoreIdentifierCase="true" ignoreStrings="true"
????ignoreStringCase="true" ignoreNumbers="true"??ignoreCharacters="true">
????<fileset dir="${src.dir}"/>
????<formatter type="xml" toFile="./_reports/simian-log.xml" />
??</simian>
??<xslt taskname="simian"
????in="./_reports/simian-log.xml"
????out="./_reports/Simian-Report.html"
????style="./_config/simian.xsl" />
</target>

???????????? _reports ???????????????? Simian ????????????????????鷳???????????????????????????????????????????????????????????????????±???????????????С??????????????????????????????????????????????????????ж?????????????????????ζ????????????????????????????????????塣?嵥 7 ??????????? run-simian ????

?????嵥 7. ???????

<target name="run-simian">
??<taskdef resource="simiantask.properties"
????classpath="simian.classpath" classpathref="simian.classpath" />
??<delete dir="${reports.simian.dir}" quiet="true" />
??<mkdir dir="${reports.simian.dir}" />
??<simian threshold="${simian.threshold}" language="${language.type}"
????ignoreCurlyBraces="true" ignoreIdentifierCase="true" ignoreStrings="true"
????ignoreStringCase="true" ignoreNumbers="true"??ignoreCharacters="true">
????<fileset dir="${src.dir}"/>
????<formatter type="xml" toFile="${reports.simian.dir}/${simian.log.file}" />
??</simian>
??<xslt taskname="simian"
????in="${reports.simian.dir}/${simian.log.file}"
????out="${reports.simian.dir}/${simian.report.file}"
????style="${config.dir}/${simian.xsl.file}" />
</target>