ant实施junit时的classpath设置,环境变量设置

ant执行junit时的classpath设置,环境变量设置?Ant执行junit时为什么需要classpath设置,环境变量设置junit

ant执行junit时的classpath设置,环境变量设置

?

Ant执行junit时为什么需要classpath设置,环境变量设置

<junit fork="yes" showoutput="yes"maxmemory="1024m" dir="${basedir}" failureProperty="test.failed">

<classpath location="${instrumented.dir}" />

<classpath refid="junit-master-classpath" />

<formatter type="xml" usefile="true" />

<test name="${testcase}" todir="${reports.junit}" if="testcase"/>

<batchtest todir="${reports.junit}" unless="testcase">

????????????? <fileset dir="${src.test.dir}">

????????????????? <include name="**/*Test.java" />

????????????? </fileset>

?????????? </batchtest>

<junit fork="yes" showoutput="yes"maxmemory="1024m" dir="${basedir}" failureProperty="test.failed">

<jvmarg value="-Dlog.home=C:/log" />

<test name="${testcase}" todir="${reports.junit}" if="testcase"/>

<batchtest todir="${reports.junit}" unless="testcase">

????????????? <fileset dir="${src.test.dir}">

????????????????? <include name="**/*Test.java" />

????????????? </fileset>

?????????? </batchtest>

</junit>

?