LUCENE-2926: contrib 'init' target now ensures that lucene-core jar is built and up-to-date

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1071891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Rowe 2011-02-18 05:56:52 +00:00
parent 55af869609
commit 377c16ad52
2 changed files with 12 additions and 1 deletions

View File

@ -664,6 +664,13 @@
</typedef>
</target>
<target name="lucene-uptodate" unless="lucene.uptodate">
<uptodate property="lucene.uptodate"
targetfile="${common.dir}/build/lucene-core-${version}.jar">
<srcfiles dir="${common.dir}/src/java" includes="**/*.java"/>
</uptodate>
</target>
<target name="rat-sources" depends="rat-sources-typedef"
description="runs the tasks over source and test files">
<rat:report xmlns:rat="antlib:org.apache.rat.anttasks">

View File

@ -60,7 +60,11 @@
<property name="core.compiled" value="true"/>
</target>
<target name="init" depends="common.init,build-lucene"/>
<target name="jar-lucene" depends="build-lucene" unless="lucene.uptodate">
<ant dir="${common.dir}" target="jar-core" inheritAll="false"/>
</target>
<target name="init" depends="common.init,lucene-uptodate,jar-lucene"/>
<target name="compile-test" depends="init" if="contrib.has.tests">
<antcall target="common.compile-test" inheritRefs="true" />
</target>