move clustering server out of example, use clustering libs w/o making a copy

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@791147 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-07-04 16:22:40 +00:00
parent 3dfc05b1e0
commit 156b50f302
9 changed files with 14 additions and 20 deletions

View File

@ -4,5 +4,5 @@ It currently provides clustering support for search results using the Carrot2 pr
See http://wiki.apache.org/solr/ClusteringComponent for how to get started.
Also, note, some of the Carrot2 libraries cannot be distributed in binary form because they are LGPL. Thus, you will have
to download those components. See the build.xml file located in this directory for the location of the libraries.
The libraries you will need are: nni.jar, Colt and PNJ.
to download those components. See the build.xml file located in this directory for the location of the libraries.
The libraries you will need are: nni.jar, Colt and PNJ.

View File

@ -29,7 +29,6 @@
<path id="common.classpath">
<fileset dir="lib"/>
<fileset dir="lib/downloads"/>
<pathelement location="${solr-path}/build/solr" />
<pathelement location="${solr-path}/build/solrj" />
<fileset dir="${solr-path}/lib" includes="*.jar"/>
@ -47,7 +46,10 @@
</target>
<target name="clean-downloads">
<delete dir="lib/downloads"/>
<delete file="lib/colt-1.2.0.jar"/>
<delete file="lib/pcj-1.2.jar"/>
<delete file="lib/nni-1.0.0.jar"/>
<delete file="lib/simple-xml-1.7.3.jar"/>
</target>
<target name="init">
@ -59,30 +61,30 @@
</target>
<target name="check-files" depends="proxy.setup">
<available file="lib/downloads/colt-1.2.0.jar" property="colt.exists"/>
<available file="lib/downloads/pcj-1.2.jar" property="pcj.exists"/>
<available file="lib/downloads/nni-1.0.0.jar" property="nni.exists"/>
<available file="lib/downloads/simple-xml-1.7.3.jar" property="simplexml.exists"/>
<available file="lib/colt-1.2.0.jar" property="colt.exists"/>
<available file="lib/pcj-1.2.jar" property="pcj.exists"/>
<available file="lib/nni-1.0.0.jar" property="nni.exists"/>
<available file="lib/simple-xml-1.7.3.jar" property="simplexml.exists"/>
</target>
<!-- http://mirrors.ibiblio.org/pub/mirrors/maven2/org/simpleframework/simple-xml/1.7.3/simple-xml-1.7.3.jar -->
<target name="get-colt" depends="check-files" unless="colt.exists">
<!-- Get the LGPL deps and put them in a separate dir -->
<get src="http://repo1.maven.org/maven2/colt/colt/1.2.0/colt-1.2.0.jar" dest="lib/downloads/colt-1.2.0.jar"/>
<get src="http://repo1.maven.org/maven2/colt/colt/1.2.0/colt-1.2.0.jar" dest="lib/colt-1.2.0.jar"/>
</target>
<target name="get-nni" depends="check-files" unless="nni.exists">
<!-- Get the LGPL deps and put them in a separate dir -->
<get src="http://download.carrot2.org/maven2/org/carrot2/nni/1.0.0/nni-1.0.0.jar" dest="lib/downloads/nni-1.0.0.jar"/>
<get src="http://download.carrot2.org/maven2/org/carrot2/nni/1.0.0/nni-1.0.0.jar" dest="lib/nni-1.0.0.jar"/>
</target>
<!-- Compile time dep. only -->
<target name="get-simple-xml" depends="check-files" unless="simplexml.exists">
<!-- Get the LGPL deps and put them in a separate dir -->
<get src="http://mirrors.ibiblio.org/pub/mirrors/maven2/org/simpleframework/simple-xml/1.7.3/simple-xml-1.7.3.jar" dest="lib/downloads/simple-xml-1.7.3.jar"/>
<get src="http://mirrors.ibiblio.org/pub/mirrors/maven2/org/simpleframework/simple-xml/1.7.3/simple-xml-1.7.3.jar" dest="lib/simple-xml-1.7.3.jar"/>
</target>
<target name="get-pcj" depends="check-files" unless="pcj.exists">
<!-- Get the LGPL deps and put them in a separate dir -->
<get src="http://repo1.maven.org/maven2/pcj/pcj/1.2/pcj-1.2.jar" dest="lib/downloads/pcj-1.2.jar"/>
<get src="http://repo1.maven.org/maven2/pcj/pcj/1.2/pcj-1.2.jar" dest="lib/pcj-1.2.jar"/>
</target>
<target name="get-libraries" depends="init, get-colt, get-pcj, get-nni, get-simple-xml"/>
@ -112,14 +114,6 @@
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
<fileset dir="lib/downloads">
<include name="*.jar"/>
</fileset>
</copy>
<copy todir="${example}/clustering/solr/lib">
<fileset dir="lib/downloads">
<include name="*.jar"/>
</fileset>
</copy>
</target>