2011-07-08 02:41:23 -04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
<project name="solr-solrj" default="default">
|
|
|
|
<description>Solrj - Solr Java Client</description>
|
|
|
|
|
2013-11-10 17:50:51 -05:00
|
|
|
<!-- violates the servlet-api restrictions, but it is safe to do so in this test: -->
|
|
|
|
<property name="forbidden-tests-excludes" value="
|
|
|
|
org/apache/solr/client/solrj/impl/BasicHttpSolrServerTest$DebugServlet.class
|
|
|
|
"/>
|
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<import file="../common-build.xml"/>
|
|
|
|
|
2012-09-06 20:57:24 -04:00
|
|
|
<!-- Specialized compile classpath: to only depend on what solrj should depend on (e.g. not lucene) -->
|
|
|
|
<path id="classpath">
|
2012-09-06 20:59:22 -04:00
|
|
|
<fileset dir="${common-solr.dir}/solrj/lib" excludes="${common.classpath.excludes}"/>
|
2012-09-06 20:57:24 -04:00
|
|
|
</path>
|
|
|
|
|
2011-07-20 09:38:46 -04:00
|
|
|
<!-- 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"/>
|
2013-03-28 14:56:07 -04:00
|
|
|
<pathelement path="${tests.userdir}"/>
|
|
|
|
<path refid="test.base.classpath"/>
|
|
|
|
<path refid="solr.base.classpath"/>
|
|
|
|
<pathelement path="${example}/resources"/>
|
2011-07-20 09:38:46 -04:00
|
|
|
</path>
|
|
|
|
|
2012-09-20 12:15:10 -04:00
|
|
|
<!-- Specialized to depend on nothing -->
|
2012-09-20 13:44:07 -04:00
|
|
|
<target name="javadocs" depends="compile-core,define-lucene-javadoc-url">
|
2012-09-20 12:15:10 -04:00
|
|
|
<sequential>
|
|
|
|
<mkdir dir="${javadoc.dir}/${name}"/>
|
|
|
|
<solr-invoke-javadoc>
|
|
|
|
<solrsources>
|
|
|
|
<packageset dir="${src.dir}"/>
|
|
|
|
</solrsources>
|
|
|
|
</solr-invoke-javadoc>
|
|
|
|
<solr-jarify basedir="${javadoc.dir}/${name}" destfile="${build.dir}/${final.name}-javadoc.jar"/>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
|
|
|
|
2012-09-23 22:56:46 -04:00
|
|
|
<!-- Specialized to use lucene's classpath too, because it refs e.g. qp syntax
|
|
|
|
(even though it doesnt compile with it)
|
|
|
|
TODO: would be nice to fix this up better, but its hard because of
|
|
|
|
the different ways solr links to lucene javadocs -->
|
2012-09-24 13:25:14 -04:00
|
|
|
<target name="-ecj-javadoc-lint-src" depends="-ecj-resolve">
|
2012-09-23 22:56:46 -04:00
|
|
|
<ecj-macro srcdir="${src.dir}" configuration="${common.dir}/tools/javadoc/ecj.javadocs.prefs">
|
|
|
|
<classpath>
|
|
|
|
<path refid="classpath"/>
|
|
|
|
<path refid="solr.lucene.libs"/>
|
|
|
|
</classpath>
|
|
|
|
</ecj-macro>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<target name="dist" depends="common-solr.dist">
|
|
|
|
<mkdir dir="${dist}/solrj-lib" />
|
|
|
|
<copy todir="${dist}/solrj-lib">
|
2012-09-06 18:47:01 -04:00
|
|
|
<fileset dir="${common-solr.dir}/solrj/lib">
|
|
|
|
<include name="*.jar"/>
|
2011-07-08 02:41:23 -04:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</target>
|
2011-09-16 00:47:04 -04:00
|
|
|
|
2013-11-02 01:04:19 -04:00
|
|
|
<target name="-dist-maven" depends="-dist-maven-src-java"/>
|
2011-07-08 02:41:23 -04:00
|
|
|
</project>
|