2005-05-01 20:11:11 -04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<project name="contrib-build">
|
|
|
|
<echo>Building ${ant.project.name}...</echo>
|
|
|
|
|
2005-05-06 19:43:54 -04:00
|
|
|
<!-- TODO: adjust build.dir/dist.dir appropriately when a contrib project is run individually -->
|
2005-05-01 20:11:11 -04:00
|
|
|
<property name="build.dir" location="../../build/contrib/${ant.project.name}"/>
|
2005-05-06 19:43:54 -04:00
|
|
|
<property name="dist.dir" location="../../dist/contrib/${ant.project.name}"/>
|
2005-05-01 20:11:11 -04:00
|
|
|
|
|
|
|
<import file="../common-build.xml"/>
|
|
|
|
|
2005-05-06 19:43:54 -04:00
|
|
|
<property name="lucene.jar" location="${common.dir}/build/lucene-core-${version}.jar"/>
|
2005-05-01 20:11:11 -04:00
|
|
|
<available property="lucene.jar.present" type="file" file="${lucene.jar}"/>
|
|
|
|
|
|
|
|
<path id="classpath">
|
|
|
|
<pathelement path="${lucene.jar}"/>
|
|
|
|
<pathelement path="${project.classpath}"/>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<path id="test.classpath">
|
|
|
|
<path refid="classpath"/>
|
|
|
|
<pathelement location="${junit.jar}"/>
|
|
|
|
<pathelement location="${build.dir}/classes/java"/>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<path id="junit.classpath">
|
|
|
|
<path refid="test.classpath"/>
|
|
|
|
<pathelement location="${build.dir}/classes/test"/>
|
|
|
|
<pathelement location="${build.dir}/classes/java"/>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<target name="build-lucene" unless="lucene.jar.present">
|
|
|
|
<!-- TODO: some tests need some of Lucene's own test classes too -->
|
|
|
|
<ant antfile="${common.dir}/build.xml" target="jar-core" inheritall="false"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="init" depends="common.init,build-lucene"/>
|
|
|
|
</project>
|