mirror of https://github.com/apache/lucene.git
LUCENE-875: "javadocs" target: don't fail on error/warning; depend on "build-contrib".
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@536942 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
03cbb8fd86
commit
85b37b9509
30
build.xml
30
build.xml
|
@ -129,7 +129,7 @@
|
||||||
<echo>DEPRECATED - Doing Nothing. See http://wiki.apache.org/lucene-java/HowToUpdateTheWebsite</echo>
|
<echo>DEPRECATED - Doing Nothing. See http://wiki.apache.org/lucene-java/HowToUpdateTheWebsite</echo>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="javadocs" description="Generate javadoc">
|
<target name="javadocs" description="Generate javadoc" depends="build-contrib">
|
||||||
<mkdir dir="${build.dir}/docs/api"/>
|
<mkdir dir="${build.dir}/docs/api"/>
|
||||||
<invoke-javadoc
|
<invoke-javadoc
|
||||||
access="protected"
|
access="protected"
|
||||||
|
@ -137,7 +137,7 @@
|
||||||
/>
|
/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="javadocs-internal">
|
<target name="javadocs-internal" depends="build-contrib">
|
||||||
<mkdir dir="${build.dir}/docs/api-internal"/>
|
<mkdir dir="${build.dir}/docs/api-internal"/>
|
||||||
<invoke-javadoc
|
<invoke-javadoc
|
||||||
access="package"
|
access="package"
|
||||||
|
@ -377,10 +377,7 @@
|
||||||
<include name="**" if="javadoc-1-5-contrib" />
|
<include name="**" if="javadoc-1-5-contrib" />
|
||||||
</dirset>
|
</dirset>
|
||||||
|
|
||||||
<record name="log_javadoc.txt" action="start" append="no"/>
|
|
||||||
|
|
||||||
<javadoc
|
<javadoc
|
||||||
failonerror="true"
|
|
||||||
overview="src/java/overview.html"
|
overview="src/java/overview.html"
|
||||||
packagenames="org.apache.lucene.*"
|
packagenames="org.apache.lucene.*"
|
||||||
destdir="@{destdir}"
|
destdir="@{destdir}"
|
||||||
|
@ -467,29 +464,6 @@
|
||||||
|
|
||||||
</javadoc>
|
</javadoc>
|
||||||
|
|
||||||
<record name="log_javadoc.txt" action="stop"/>
|
|
||||||
|
|
||||||
<delete>
|
|
||||||
<fileset file="log_javadoc.txt">
|
|
||||||
<not>
|
|
||||||
<containsregexp expression="\[javadoc\]\s*[1-9][0-9]*[\s]*warning"/>
|
|
||||||
</not>
|
|
||||||
</fileset>
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<fail message="Javadocs warnings were found!">
|
|
||||||
<condition>
|
|
||||||
<and>
|
|
||||||
<available file="log_javadoc.txt"/>
|
|
||||||
<not>
|
|
||||||
<!-- TODO: once gdata javadocs are fixed, remove this part of the 'and' (and the 'and' itself...) -->
|
|
||||||
<isset property="javadoc-1-5-contrib"/>
|
|
||||||
</not>
|
|
||||||
</and>
|
|
||||||
</condition>
|
|
||||||
</fail>
|
|
||||||
|
|
||||||
|
|
||||||
</sequential>
|
</sequential>
|
||||||
</macrodef>
|
</macrodef>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue