Skip to content

Apache Lucene open-source search software

SOLR-3686: compile solrj/src/java only with its correct dependencies (tests still have the same classpath as before)

Robert Muir8a72b1092613
diff --git a/solr/solrj/build.xml b/solr/solrj/build.xml
index b0a5f6e8918..464f2425661 100644
--- a/solr/solrj/build.xml
+++ b/solr/solrj/build.xml
@@ -20,11 +20,19 @@
<import file="../common-build.xml"/>
+ <!-- Specialized compile classpath: to only depend on what solrj should depend on (e.g. not lucene) -->
+ <path id="classpath">
+ <fileset dir="${common-solr.dir}/solrj/lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
<!-- Specialized common-solr.test.classpath, to remove the Solr core test output -->
<path id="test.classpath">
<pathelement path="${common-solr.dir}/build/solr-test-framework/classes/java"/>
<pathelement path="${tests.userdir}"/>
<path refid="test.base.classpath"/>
+ <path refid="solr.base.classpath"/>
</path>
<target name="dist" depends="common-solr.dist">