зеркало из https://github.com/mozilla/gecko-dev.git
add_javadocs
This commit is contained in:
Родитель
96b57c1417
Коммит
78901b7ba8
|
@ -51,16 +51,35 @@
|
||||||
<target name="release">
|
<target name="release">
|
||||||
|
|
||||||
<antcall target="prepare" />
|
<antcall target="prepare" />
|
||||||
<antcall target="uptodate.core.java.classes" />
|
<antcall target="uptodate" />
|
||||||
<antcall target="compile.all" />
|
<antcall target="compile.all" />
|
||||||
<antcall target="build.dist.jar" />
|
<antcall target="build.dist.jar" />
|
||||||
<antcall target="copy.binaries" />
|
<antcall target="copy.binaries" />
|
||||||
<antcall target="copy.test.src" />
|
<antcall target="copy.test.src" />
|
||||||
<antcall target="copy.build.support" />
|
<antcall target="copy.build.support" />
|
||||||
|
<antcall target="build.javadocs" />
|
||||||
|
<antcall target="build.zip" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="build.zip">
|
||||||
|
<condition property="platform" value="win32">
|
||||||
|
<and>
|
||||||
|
<os family="windows" />
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="platform" value="linux">
|
||||||
|
<and>
|
||||||
|
<os family="unix" />
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<zip destfile="${objdir}/${name}_${version}_${platform}.zip"
|
||||||
|
basedir="${dist.home}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean">
|
<target name="clean">
|
||||||
|
<delete file="${objdir}/${name}_${version}_${platform}.zip" />
|
||||||
<delete dir="${dist.home}" />
|
<delete dir="${dist.home}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -110,12 +129,23 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="uptodate.core.java.classes">
|
<target name="uptodate">
|
||||||
<uptodate property="core.java.classes.uptodate"
|
<uptodate property="core.java.classes.uptodate"
|
||||||
targetfile="${dist.jar}">
|
targetfile="${dist.jar}">
|
||||||
<srcfiles dir="${dist.classes}" />
|
<srcfiles dir="${dist.classes}" />
|
||||||
</uptodate>
|
</uptodate>
|
||||||
<echo message="java classes up to date: ${core.java.classes.uptodate}" />
|
<echo message="java classes up to date: ${core.java.classes.uptodate}" />
|
||||||
|
|
||||||
|
<uptodate property="javadocs.uptodate"
|
||||||
|
targetfile="${dist.javadocs}/index.html" >
|
||||||
|
<srcfiles dir= "${source.home}">
|
||||||
|
<include name="**/webclient/classes_spec/**/*.java" />
|
||||||
|
<include name="**/util/classes/**/*.java" />
|
||||||
|
<include name="**/dom/classes/**/*.java" />
|
||||||
|
</srcfiles>
|
||||||
|
</uptodate>
|
||||||
|
<echo message="javadoc up to date: ${javadocs.uptodate}" />
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build.dist.jar">
|
<target name="build.dist.jar">
|
||||||
|
@ -136,7 +166,7 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="compile.all" unless="core.java.classes.uptodate"
|
<target name="compile.all" unless="core.java.classes.uptodate"
|
||||||
depends="uptodate.core.java.classes">
|
depends="uptodate">
|
||||||
<ant inheritAll="false" dir="${source.home}" />
|
<ant inheritAll="false" dir="${source.home}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -176,6 +206,35 @@
|
||||||
<fileset dir="${basedir}/netbeans" />
|
<fileset dir="${basedir}/netbeans" />
|
||||||
</copy>
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="build.javadocs" depends="prepare,uptodate"
|
||||||
|
unless="javadocs.uptodate"
|
||||||
|
description="Create the JavaDoc API documentation">
|
||||||
|
<javadoc packagenames="org.mozilla.*"
|
||||||
|
destdir="${dist.javadocs}"
|
||||||
|
Overview="${source.home}/webclient/classes_spec/org/mozilla/webclient/overview.html"
|
||||||
|
private="${javadoc.private}"
|
||||||
|
protected="${javadoc.protected}"
|
||||||
|
windowtitle="${Name} (${version})"
|
||||||
|
doctitle="${Name} (${version})"
|
||||||
|
bottom="Copyright © 2002-2005 Mozilla.org All Rights Reserved.">
|
||||||
|
<fileset dir="${source.home}">
|
||||||
|
<include name="**/*.java"/>
|
||||||
|
<exclude name="**/impl/**/*.java" />
|
||||||
|
<exclude name="**/wrapper_nonnative/**/*.java" />
|
||||||
|
<exclude name="**/*Impl.java" />
|
||||||
|
<exclude name="**/test*/**/*.java" />
|
||||||
|
<exclude name="plugins/**/*.*" />
|
||||||
|
<exclude name="xpcom/**/*.*" />
|
||||||
|
<exclude name="dom/blackconnect/**/*.*" />
|
||||||
|
<exclude name="pluggable-jvm/**/*.*" />
|
||||||
|
<exclude name="**/*Bookmark*.java" />
|
||||||
|
<exclude name="**/*Preferences*.java" />
|
||||||
|
<exclude name="**/*Profile*.java" />
|
||||||
|
</fileset>
|
||||||
|
<classpath location="${dist.jar}"/>
|
||||||
|
</javadoc>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче