mirror of https://github.com/apache/lucene.git
clean up test build procedure slightly
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150002 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a89de10f25
commit
624995b302
29
build.xml
29
build.xml
|
@ -28,7 +28,7 @@
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
<path id="junit.classpath">
|
<path id="junit.classpath">
|
||||||
<pathelement location="${junit.classes}" />
|
<pathelement location="${build.test.classes}" />
|
||||||
<pathelement location="${build.classes}"/>
|
<pathelement location="${build.classes}"/>
|
||||||
<fileset dir="lib">
|
<fileset dir="lib">
|
||||||
<include name="*.jar" />
|
<include name="*.jar" />
|
||||||
|
@ -268,7 +268,7 @@ Implementation-Vendor: Lucene
|
||||||
srcdir="${test.src}"
|
srcdir="${test.src}"
|
||||||
includes="**/*.java"
|
includes="**/*.java"
|
||||||
destdir="${build.test.classes}"
|
destdir="${build.test.classes}"
|
||||||
debug="${debug}">
|
debug="true">
|
||||||
<classpath refid="test.classpath"/>
|
<classpath refid="test.classpath"/>
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
|
@ -279,30 +279,11 @@ Implementation-Vendor: Lucene
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<!-- ================================================================== -->
|
<!-- ================================================================== -->
|
||||||
<target name="test-unit" depends="compile,test" if="junit.present">
|
<target name="test-unit" depends="compile,test" if="junit.present">
|
||||||
<!-- Import JUnit task -->
|
|
||||||
<taskdef
|
|
||||||
name="junit"
|
|
||||||
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<mkdir dir="${junit.classes}"/>
|
|
||||||
<mkdir dir="${junit.reports}"/>
|
<mkdir dir="${junit.reports}"/>
|
||||||
<javac
|
<junit printsummary="off" haltonfailure="no" >
|
||||||
encoding="${build.encoding}"
|
|
||||||
srcdir="${junit.src}"
|
|
||||||
includes="**/*.java"
|
|
||||||
destdir="${junit.classes}"
|
|
||||||
debug="${debug}">
|
|
||||||
<classpath refid="test.classpath"/>
|
|
||||||
</javac>
|
|
||||||
|
|
||||||
<copy todir="${junit.classes}">
|
|
||||||
<fileset dir="${junit.src}" excludes="**/*.java"/>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<junit printsummary="yes" haltonfailure="no" >
|
|
||||||
<classpath refid="junit.classpath"/>
|
<classpath refid="junit.classpath"/>
|
||||||
<formatter type="plain" />
|
<formatter type="plain"/>
|
||||||
|
<formatter type="brief" usefile="false"/>
|
||||||
<batchtest fork="yes" todir="${junit.reports}">
|
<batchtest fork="yes" todir="${junit.reports}">
|
||||||
<fileset dir="${junit.src}" includes="**/Test*.java" />
|
<fileset dir="${junit.src}" includes="**/Test*.java" />
|
||||||
</batchtest>
|
</batchtest>
|
||||||
|
|
Loading…
Reference in New Issue