mirror of https://github.com/apache/lucene.git
SOLR-312 -- adding javadoc task for solrj. Including the javadocs in the distribution.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@557773 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e90cf40c79
commit
dd31a89b2f
39
build.xml
39
build.xml
|
@ -79,6 +79,7 @@
|
|||
<property name="javadoc.years" value="2006 - ${year}" />
|
||||
<property name="build.docs" value="${dest}/docs"/>
|
||||
<property name="build.javadoc" value="${build.docs}/api"/>
|
||||
<property name="build.javadoc.solrj" value="${build.docs}/api-solrj"/>
|
||||
<property name="javadoc.access" value="protected"/>
|
||||
<property name="javadoc.link.java"
|
||||
value="http://java.sun.com/j2se/1.5.0/docs/api/"/>
|
||||
|
@ -320,6 +321,42 @@
|
|||
<src path="${solrj-dir}/src/org/apache/solr/client/solrj/embedded" />
|
||||
</solr-javac>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="javadoc-solrj" depends="compile"
|
||||
description="Generates solrj javadoc documentation.">
|
||||
<mkdir dir="${build.javadoc.solrj}"/>
|
||||
<path id="javadoc.classpath.solrj">
|
||||
<path refid="compile.classpath"/>
|
||||
<!-- aparently ant.library.dir isn't allways set right? -->
|
||||
<fileset dir="${ant.home}/lib">
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
||||
<fileset dir="${ant.library.dir}">
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
<javadoc
|
||||
destdir="${build.javadoc.solrj}"
|
||||
author="true"
|
||||
version="true"
|
||||
failonerror="true"
|
||||
use="true"
|
||||
encoding="utf8"
|
||||
access="${javadoc.access}"
|
||||
windowtitle="${Name}-j ${version} API"
|
||||
doctitle="${Name}-j ${version} API (${specversion})"
|
||||
bottom="Copyright &copy; ${javadoc.years} The Apache Software Foundation"
|
||||
>
|
||||
<packageset dir="${solrj-dir}/src" />
|
||||
<link href="${javadoc.link.java}"/>
|
||||
<link href="${javadoc.link.junit}"/>
|
||||
<link href="${javadoc.link.lucene}"/>
|
||||
<classpath refid="compile.classpath.solrj"/>
|
||||
<classpath refid="compile.classpath.solrj-embedded"/>
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
<!-- ========================================================================= -->
|
||||
|
@ -566,7 +603,7 @@
|
|||
<!-- make a distribution -->
|
||||
<target name="package"
|
||||
description="Packages the Solr Distribution files and Documentation."
|
||||
depends="dist, example, javadoc">
|
||||
depends="dist, example, javadoc-solrj, javadoc">
|
||||
|
||||
<copy todir="${build.docs}">
|
||||
<fileset dir="site" />
|
||||
|
|
Loading…
Reference in New Issue