lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmarsch...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/webcrawler-LARM build.xml
Date Tue, 18 Jun 2002 00:47:39 GMT
cmarschner    2002/06/17 17:47:39

  Modified:    contributions/webcrawler-LARM build.xml
  Log:
  lucene.jar is now necessary for building lucene storage
  
  Revision  Changes    Path
  1.2       +35 -4     jakarta-lucene-sandbox/contributions/webcrawler-LARM/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/webcrawler-LARM/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	1 Jun 2002 18:55:15 -0000	1.1
  +++ build.xml	18 Jun 2002 00:47:39 -0000	1.2
  @@ -2,6 +2,8 @@
   
   <project name="webcrawler-LARM" default="build" basedir=".">
   
  +  <property file="${basedir}/build.properties" />
  +
     <property name="name"           value="webcrawler_LARM"/>
     <property name="version"        value="0.5"/>
     <property name="final.name"     value="${name}-${version}"/>
  @@ -18,27 +20,56 @@
     <property name="build.src"      value="${build.dir}/src"/>
     <property name="build.encoding" value="ISO-8859-1"/>
   
  +  
  +
     <property name="threads"        value="15"/>
   
   <!-- Build classpath -->
     <path id="classpath">
       <pathelement location="${build.classes}"/>
  +    <pathelement location="${lucene.jar}"/>
       <fileset dir="${lib.dir}">
  -      <include name="*.jar" />
  -    </fileset>
  -  </path>
  +        <include name="*.jar" />
  +     </fileset>
  +   </path>
   
     <path id="run.classpath">
       <pathelement location="${build.dir}/${final.name}.jar"/>
  +    <pathelement location="${lucene.jar}"/>
       <fileset dir="${lib.dir}">
         <include name="*.jar" />
       </fileset>
     </path>
   
  +
  +
  +  <!-- ================================================================== -->
  +  <!-- I N I T                                                            -->
  +  <!-- ================================================================== -->
  +
  +
  +  <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                                                          -->
     <!-- ================================================================== -->
  -  <target name="build"
  +  <target name="build" depends="init,lucene_check"
       description="-> builds jar file">
       <mkdir dir="${build.dir}"/>
       <mkdir dir="${build.classes}"/>
  
  
  

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message