Mailing List Archive

cvs commit: jakarta-lucene-sandbox/contributions/webcrawler-LARM build.xml
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>
cvs commit: jakarta-lucene-sandbox/contributions/webcrawler-LARM build.xml [ In reply to ]
otis 2002/06/30 07:58:27

Modified: contributions/webcrawler-LARM build.xml
Log:
- Fixed Usage text.
- Added oro.jar property.

Revision Changes Path
1.3 +7 -7 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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- build.xml 18 Jun 2002 00:47:39 -0000 1.2
+++ build.xml 30 Jun 2002 14:58:27 -0000 1.3
@@ -20,14 +20,13 @@
<property name="build.src" value="${build.dir}/src"/>
<property name="build.encoding" value="ISO-8859-1"/>

-
-
<property name="threads" value="15"/>

-<!-- Build classpath -->
+ <!-- Build classpath -->
<path id="classpath">
<pathelement location="${build.classes}"/>
<pathelement location="${lucene.jar}"/>
+ <pathelement location="${oro.jar}"/>
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
@@ -36,6 +35,7 @@
<path id="run.classpath">
<pathelement location="${build.dir}/${final.name}.jar"/>
<pathelement location="${lucene.jar}"/>
+ <pathelement location="${oro.jar}"/>
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
@@ -95,9 +95,9 @@
<target name="checksyntax" unless="start">
<echo>
use run with the following syntax
-
- ant run -Dstart=&lt;URL&gt; -Drestrictto=&lt;Pattern&gt; [-threads=&lt;Thread Count&gt;]
-
+
+ ant run -Dstart=&lt;URL&gt; -Drestrictto=&lt;Pattern&gt; [-Dthreads=&lt;Thread Count&gt;]
+
default value for threads is 15
</echo>
</target>
@@ -109,7 +109,7 @@
description="-> runs command-line version of the crawler">
<delete dir="${logs.dir}"/>
<mkdir dir="${logs.dir}"/>
- <java
+ <java
classname="de.lanlab.larm.fetcher.FetcherMain"
fork="yes">
<jvmarg value="-server"/>




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