build distributions, and consolidate from master build

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2004-01-05 16:35:10 +00:00
parent d33a91c6c3
commit 1cb510889b
2 changed files with 30 additions and 22 deletions

View File

@ -1,7 +1,11 @@
<project name="sandbox" default="build-tree"> <project name="sandbox" default="build-tree">
<property name="dist.dir" location="dist"/>
<target name="clean"> <target name="clean">
<subant target="clean"> <subant target="clean">
<property name="dist.dir" location="${dist.dir}"/>
<fileset dir="." <fileset dir="."
includes="*/build.xml" includes="*/build.xml"
/> />
@ -10,6 +14,8 @@
<target name="build-tree"> <target name="build-tree">
<subant target=""> <subant target="">
<property name="dist.dir" location="${dist.dir}"/>
<!-- Exclude LARM for now, <!-- Exclude LARM for now,
until its build is brought up to speed until its build is brought up to speed
--> -->

View File

@ -12,6 +12,8 @@
<property name="dist.dir" location="dist"/> <property name="dist.dir" location="dist"/>
<property name="dist.name" value="${ant.project.name}.jar"/>
<property name="junit.jar" location="${ant.home}/lib/junit.jar"/> <property name="junit.jar" location="${ant.home}/lib/junit.jar"/>
<dirname file="${ant.file.common}" property="common.dir"/> <dirname file="${ant.file.common}" property="common.dir"/>
<property name="lucene.dir" location="${common.dir}/../../jakarta-lucene"/> <property name="lucene.dir" location="${common.dir}/../../jakarta-lucene"/>
@ -22,6 +24,7 @@
<!-- ========================================================== --> <!-- ========================================================== -->
<!-- Datatype declarations --> <!-- Datatype declarations -->
<!-- ========================================================== --> <!-- ========================================================== -->
<!-- TODO: define ${lucene.jar} for easeir overriding -->
<path id="compile.classpath"> <path id="compile.classpath">
<fileset dir="${lucene.dir}" includes="build/lucene*.jar"/> <fileset dir="${lucene.dir}" includes="build/lucene*.jar"/>
<pathelement path="${project.classpath}"/> <pathelement path="${project.classpath}"/>
@ -59,30 +62,29 @@
<delete dir="${test.classes.dir}"/> <delete dir="${test.classes.dir}"/>
</target> </target>
<target name="dist" depends="compile" <target name="dist" depends="compile" description="Create JAR">
description="Create JAR"> <jar jarfile="${dist.dir}/${dist.name}"
<jar jarfile="${lucene-ant.jar}" basedir="${build.classes.dir}"
basedir="${build.classes.dir}" />
/>
</target> </target>
<target name="compile" depends="init"> <target name="compile" depends="init">
<javac destdir="${build.classes.dir}" <javac destdir="${build.classes.dir}"
debug="${build.debug}" debug="${build.debug}"
includeAntRuntime="yes" includeAntRuntime="yes"
deprecation="true" deprecation="true"
srcdir="${src.dir}" srcdir="${src.dir}"
classpathref="compile.classpath" classpathref="compile.classpath"
/> />
</target> </target>
<target name="test-compile" depends="compile" if="has.tests"> <target name="test-compile" depends="compile" if="has.tests">
<javac destdir="${test.classes.dir}" <javac destdir="${test.classes.dir}"
debug="${build.debug}" debug="${build.debug}"
includeAntRuntime="yes" includeAntRuntime="yes"
srcdir="src/test" srcdir="src/test"
classpathref="test.classpath" classpathref="test.classpath"
/> />
<copy todir="${test.classes.dir}"> <copy todir="${test.classes.dir}">
<fileset dir="src/test" excludes="**/*.java"/> <fileset dir="src/test" excludes="**/*.java"/>
@ -91,9 +93,9 @@
<target name="test" depends="test-compile" if="has.tests"> <target name="test" depends="test-compile" if="has.tests">
<junit printsummary="no" <junit printsummary="no"
errorProperty="test.failed" errorProperty="test.failed"
failureProperty="test.failed" failureProperty="test.failed"
fork="${junit.fork}"> fork="${junit.fork}">
<classpath refid="test.classpath"/> <classpath refid="test.classpath"/>
<sysproperty key="docs.dir" file="${test.classes.dir}"/> <sysproperty key="docs.dir" file="${test.classes.dir}"/>
<sysproperty key="index.dir" file="${test.output.dir}/index"/> <sysproperty key="index.dir" file="${test.output.dir}/index"/>
@ -101,8 +103,8 @@
<test name="${testcase}" if="testcase"/> <test name="${testcase}" if="testcase"/>
<batchtest todir="${test.data.dir}" unless="testcase"> <batchtest todir="${test.data.dir}" unless="testcase">
<fileset dir="${test.classes.dir}" <fileset dir="${test.classes.dir}"
includes="**/*Test.class,**/Test*.class" includes="**/*Test.class,**/Test*.class"
/> />
</batchtest> </batchtest>
</junit> </junit>
@ -112,6 +114,6 @@
</target> </target>
<target name="default" depends="test"/> <target name="default" depends="test,dist"/>
</project> </project>