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

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1381834 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-09-07 00:57:24 +00:00
parent f7e7097edd
commit 8a72b10926
1 changed files with 8 additions and 0 deletions

View File

@ -20,11 +20,19 @@
<import file="../common-build.xml"/> <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 --> <!-- Specialized common-solr.test.classpath, to remove the Solr core test output -->
<path id="test.classpath"> <path id="test.classpath">
<pathelement path="${common-solr.dir}/build/solr-test-framework/classes/java"/> <pathelement path="${common-solr.dir}/build/solr-test-framework/classes/java"/>
<pathelement path="${tests.userdir}"/> <pathelement path="${tests.userdir}"/>
<path refid="test.base.classpath"/> <path refid="test.base.classpath"/>
<path refid="solr.base.classpath"/>
</path> </path>
<target name="dist" depends="common-solr.dist"> <target name="dist" depends="common-solr.dist">