lucene.jar is now necessary for building lucene storage

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150787 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
cmarschner 2002-06-18 00:47:39 +00:00
parent 42c33097b3
commit be12c931f4
1 changed files with 38 additions and 7 deletions

View File

@ -2,6 +2,8 @@
<project name="webcrawler-LARM" default="build" basedir="."> <project name="webcrawler-LARM" default="build" basedir=".">
<property file="${basedir}/build.properties" />
<property name="name" value="webcrawler_LARM"/> <property name="name" value="webcrawler_LARM"/>
<property name="version" value="0.5"/> <property name="version" value="0.5"/>
<property name="final.name" value="${name}-${version}"/> <property name="final.name" value="${name}-${version}"/>
@ -18,27 +20,56 @@
<property name="build.src" value="${build.dir}/src"/> <property name="build.src" value="${build.dir}/src"/>
<property name="build.encoding" value="ISO-8859-1"/> <property name="build.encoding" value="ISO-8859-1"/>
<property name="threads" value="15"/> <property name="threads" value="15"/>
<!-- Build classpath --> <!-- Build classpath -->
<path id="classpath"> <path id="classpath">
<pathelement location="${build.classes}"/> <pathelement location="${build.classes}"/>
<pathelement location="${lucene.jar}"/>
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
</path>
<path id="run.classpath">
<pathelement location="${build.dir}/${final.name}.jar"/>
<pathelement location="${lucene.jar}"/>
<fileset dir="${lib.dir}"> <fileset dir="${lib.dir}">
<include name="*.jar" /> <include name="*.jar" />
</fileset> </fileset>
</path> </path>
<path id="run.classpath">
<pathelement location="${build.dir}/${final.name}.jar"/>
<fileset dir="${lib.dir}"> <!-- ================================================================== -->
<include name="*.jar" /> <!-- I N I T -->
</fileset> <!-- ================================================================== -->
</path>
<target name="init">
<available
property="lucene.present"
classname="org.apache.lucene.document.Document"
classpath="${lucene.jar}"
/>
</target>
<target name="lucene_check" depends="init" unless="lucene.present">
<echo>
##################################################################
Lucene not found.
Lucene Home: ${lucene.jar}
##################################################################
</echo>
</target>
<!-- ================================================================== --> <!-- ================================================================== -->
<!-- B U I L D --> <!-- B U I L D -->
<!-- ================================================================== --> <!-- ================================================================== -->
<target name="build" <target name="build" depends="init,lucene_check"
description="-> builds jar file"> description="-> builds jar file">
<mkdir dir="${build.dir}"/> <mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes}"/> <mkdir dir="${build.classes}"/>