Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

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

Yonik Seeley156b50f302c5
diff --git a/contrib/clustering/README.txt b/contrib/clustering/README.txt
index 2b876e462e7..45c4e562f63 100644
--- a/contrib/clustering/README.txt
+++ b/contrib/clustering/README.txt
@@ -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.
\ No newline at end of file
+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.
diff --git a/contrib/clustering/build.xml b/contrib/clustering/build.xml
index 675e65639fb..4d16f09e05b 100644
--- a/contrib/clustering/build.xml
+++ b/contrib/clustering/build.xml
@@ -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>
diff --git a/example/clustering/solr/conf/mapping-ISOLatin1Accent.txt b/contrib/clustering/conf/mapping-ISOLatin1Accent.txt
similarity index 100%
rename from example/clustering/solr/conf/mapping-ISOLatin1Accent.txt
rename to contrib/clustering/conf/mapping-ISOLatin1Accent.txt
diff --git a/example/clustering/solr/conf/protwords.txt b/contrib/clustering/conf/protwords.txt
similarity index 100%
rename from example/clustering/solr/conf/protwords.txt
rename to contrib/clustering/conf/protwords.txt
diff --git a/example/clustering/solr/conf/schema.xml b/contrib/clustering/conf/schema.xml
similarity index 100%
rename from example/clustering/solr/conf/schema.xml
rename to contrib/clustering/conf/schema.xml
diff --git a/example/clustering/solr/conf/solrconfig.xml b/contrib/clustering/conf/solrconfig.xml
similarity index 100%
rename from example/clustering/solr/conf/solrconfig.xml
rename to contrib/clustering/conf/solrconfig.xml
diff --git a/example/clustering/solr/conf/spellings.txt b/contrib/clustering/conf/spellings.txt
similarity index 100%
rename from example/clustering/solr/conf/spellings.txt
rename to contrib/clustering/conf/spellings.txt
diff --git a/example/clustering/solr/conf/stopwords.txt b/contrib/clustering/conf/stopwords.txt
similarity index 100%
rename from example/clustering/solr/conf/stopwords.txt
rename to contrib/clustering/conf/stopwords.txt
diff --git a/example/clustering/solr/conf/synonyms.txt b/contrib/clustering/conf/synonyms.txt
similarity index 100%
rename from example/clustering/solr/conf/synonyms.txt
rename to contrib/clustering/conf/synonyms.txt