Fix build to not complain about non-test tests.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@169862 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug Cutting 2005-05-12 18:11:04 +00:00
parent 01947641d5
commit f337d12a26
2 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,7 @@
<project name="core" default="default" basedir="."> <project name="core" default="default" basedir=".">
<property name="junit.includes" value="**/Test*.java"/>
<import file="common-build.xml"/> <import file="common-build.xml"/>
@ -393,6 +394,10 @@
<contrib-crawl/> <contrib-crawl/>
</target> </target>
<target name="test-contrib" depends="compile-test">
<contrib-crawl target="test"/>
</target>
<macrodef name="invoke-javadoc"> <macrodef name="invoke-javadoc">
<attribute name="access"/> <attribute name="access"/>
<attribute name="destdir"/> <attribute name="destdir"/>

View File

@ -41,7 +41,7 @@
<property name="junit.output.dir" location="${build.dir}/test"/> <property name="junit.output.dir" location="${build.dir}/test"/>
<property name="junit.reports" location="${build.dir}/test/reports"/> <property name="junit.reports" location="${build.dir}/test/reports"/>
<property name="junit.includes" value="**/Test*.java,**/*Test.java"/>
<available <available
property="javacc.present" property="javacc.present"
@ -178,8 +178,7 @@
<formatter type="xml"/> <formatter type="xml"/>
<formatter type="brief" usefile="false"/> <formatter type="brief" usefile="false"/>
<batchtest fork="yes" todir="${junit.output.dir}" unless="testcase"> <batchtest fork="yes" todir="${junit.output.dir}" unless="testcase">
<fileset dir="src/test" includes="**/Test*.java"/> <fileset dir="src/test" includes="${junit.includes}"/>
<fileset dir="src/test" includes="**/*Test.java"/>
</batchtest> </batchtest>
<batchtest fork="yes" todir="${junit.output.dir}" if="testcase"> <batchtest fork="yes" todir="${junit.output.dir}" if="testcase">
<fileset dir="src/test" includes="**/${testcase}.java"/> <fileset dir="src/test" includes="**/${testcase}.java"/>