Create a gist now

Instantly share code, notes, and snippets.

javadoc-apiviz-android
Picture:
https://lh6.googleusercontent.com/_dCsxxQGdwps/Tc64B1JhtTE/AAAAAAAAAkU/9iMAjHfJd04/s160-c/Apiviz.jpg
or: https://picasaweb.google.com/fred.grott/Apiviz?feat=directlink
from local.properties:
javadoc.stylesheet=C:/Google/Android/android-sdk/docs/assets/android-developer-docs.css
javadoc.linkoffline=http://d.android.com/reference C:/Google/Android/android-sdk/docs/reference
paths:
<path id="javadoc.source">
<pathelement path="${source.absolute.dir}"/>
<pathelement path="${gen.absolute.dir}"/>
</path>
<!-- Path needs to include both Android jars and
3rd party library jars in libs-->
<path id="android.project.libs">
<fileset dir="${native.libs.dir}">
<include name="**/*.jar"/>
</fileset>
<path refid="android.target.classpath"/>
</path>
<path id="classes.classpath">
<fileset dir="build/classes">
<include name="**/*.class"/>
</fileset>
</path>
<property name="doclets.apiviz.location"
location="${buildsystem.dir}/apivizdoclet/apiviz-1.3.1.GA.jar"/>
meat of javadoc task:
<target name="-apivizdoclet">
<mkdir dir="${docs.dir}/javadoc/resources"/>
<copy file="${docs.dir}/images/companylogo.png"
todir="${docs.dir}/javadoc/resources"/>
<javadoc
sourcepathref="javadoc.source"
destdir="${docs.dir}/javadoc"
bootclasspathref="android.project.libs"
private="true"
stylesheetfile="${javadoc.stylesheet}"
linksource="true"
linkoffline="${javadoc.linkoffline}"
windowtitle="${ant.project.name}"
additionalparam="-author -version -sourceclasspath ${out.classes.dir}">
<!-- Use a nice documentation title -->
<doctitle>
${ant.project.name}&lt;/br>
API Specification
</doctitle>
<!-- Create a header that contains the taglets logo -->
<!-- Note the use of the {@docRoot} tag to link to the logo -->
<header>
&lt;img
src=&quot;{@docRoot}/resources/companylogo.png&quot;
width=&quot;88&quot; height=&quot;40&quot; border=&quot;0&quot;
&gt;
</header>
<!-- Same for the footer -->
<footer>
&lt;img
src=&quot;{@docRoot}/resources/companylogo.png&quot;
width=&quot;88&quot; height=&quot;40&quot;
&gt;
</footer>
<!-- Include a timestamp at the bottom of the docu generated -->
<!-- Note the use of ${timestamp} which was created by the -->
<!-- <tstamp> task at the start of this target -->
<bottom>
&lt;p align=&quot;right&quot;&gt;
&lt;font class=&quot;NavBarFont1&quot; size=&quot;-1&quot;&gt;
Android SDK API Target ${target}&lt;br&gt;
${ant.project.name}&lt;br&gt;
API Spec&lt;br&gt;
${TSTAMP} ${DSTAMP}
&lt;/font&gt;
&lt;/p&gt;
</bottom>
<doclet name="org.jboss.apiviz.APIviz"
path="${doclets.apiviz.location}">
</doclet>
</javadoc>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment