Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-655 -- Adds the compilation of solrj as a prerequisite for generating core-javadoc and the compiled classes and libraries to the classpath. Adds a missing import to IndexSchema. Fixes 2 javadoc comments with improper @param usage in ClientUtils.

Ryan McKinleyd5a66e7bc95a
diff --git a/build.xml b/build.xml
index 8a1bbc9c8d2..76965ac3c92 100644
--- a/build.xml
+++ b/build.xml
@@ -160,13 +160,15 @@
</solr-javac>
</target>
- <target name="core-javadoc" depends="compile"
+ <target name="core-javadoc" depends="compile,compile-solrj"
description="Generates javadoc documentation.">
<mkdir dir="${build.javadoc}"/>
<path id="javadoc.classpath">
<path refid="compile.classpath"/>
+ <path refid="compile.classpath.solrj"/>
+ <pathelement location="${dest}/client/solrj"/>
</path>
<javadoc
diff --git a/client/java/solrj/src/org/apache/solr/client/solrj/util/ClientUtils.java b/client/java/solrj/src/org/apache/solr/client/solrj/util/ClientUtils.java
index 0624705459a..90038e537dd 100644
--- a/client/java/solrj/src/org/apache/solr/client/solrj/util/ClientUtils.java
+++ b/client/java/solrj/src/org/apache/solr/client/solrj/util/ClientUtils.java
@@ -70,7 +70,7 @@ public class ClientUtils
}
/**
- * @param SolrDocument to convert
+ * @param d SolrDocument to convert
* @return a SolrInputDocument with the same fields and values as the
* SolrDocument. All boosts are 1.0f
*/
@@ -84,7 +84,7 @@ public class ClientUtils
}
/**
- * @param SolrInputDocument to convert
+ * @param d SolrInputDocument to convert
* @return a SolrDocument with the same fields and values as the SolrInputDocument
*/
public static SolrDocument toSolrDocument( SolrInputDocument d )
diff --git a/src/java/org/apache/solr/schema/IndexSchema.java b/src/java/org/apache/solr/schema/IndexSchema.java
index 35a498e1954..2555b4ac629 100644
--- a/src/java/org/apache/solr/schema/IndexSchema.java
+++ b/src/java/org/apache/solr/schema/IndexSchema.java
@@ -34,6 +34,7 @@ import org.apache.solr.analysis.TokenizerChain;
import org.apache.solr.analysis.TokenizerFactory;
import org.apache.solr.search.SolrQueryParser;
import org.apache.solr.util.plugin.AbstractPluginLoader;
+import org.apache.solr.util.plugin.SolrCoreAware;
import org.w3c.dom.*;
import javax.xml.xpath.XPath;