Fixing core Javadocs, so they are integrated with the complete Javadocs
git-svn-id: https://google-guice.googlecode.com/svn/trunk@973 d779f126-a31b-0410-b53b-1d3aecad763e
diff --git a/build.xml b/build.xml
index 5f4b609..830db9c 100644
--- a/build.xml
+++ b/build.xml
@@ -96,21 +96,6 @@
</java>
</target>
- <target name="javadoc.core"
- description="Generate Javadocs.">
- <mkdir dir="${build.dir}/javadoc-core"/>
- <javadoc packagenames="${javadoc.packagenames}"
- destdir="${build.dir}/javadoc-core"
- author="false"
- protected="true"
- windowtitle="Guice 2.0 Core API"
- sourcepath="${src.dir}">
- <classpath refid="compile.classpath"/>
- <link href="http://aopalliance.sourceforge.net/doc"/>
- <link href="http://java.sun.com/javase/6/docs/api"/>
- </javadoc>
- </target>
-
<target name="javadoc"
description="Generate Javadocs.">
<mkdir dir="${build.dir}/javadoc"/>
@@ -137,6 +122,34 @@
<link href="http://java.sun.com/javase/6/docs/api"/>
<link href="http://www.springframework.org/docs/api/"/>
</javadoc>
+ <!-- generate core javadocs, used only for its left-side nav -->
+ <mkdir dir="${build.dir}/javadoc-core"/>
+ <javadoc packagenames="${javadoc.packagenames}"
+ destdir="${build.dir}/javadoc-core"
+ author="false"
+ protected="true"
+ windowtitle="Guice 2.0 Core API"
+ sourcepath="${src.dir}">
+ <classpath refid="compile.classpath"/>
+ <link href="http://aopalliance.sourceforge.net/doc"/>
+ <link href="http://java.sun.com/javase/6/docs/api"/>
+ </javadoc>
+ <!-- setup the left-side navigation frames to toggle between core and all classes -->
+ <move file="${build.dir}/javadoc/overview-frame.html" tofile="${build.dir}/javadoc/overview-frame-with-extensions.html"/>
+ <copy file="${build.dir}/javadoc-core/overview-frame.html" tofile="${build.dir}/javadoc/overview-frame.html"/>
+ <replace file="${build.dir}/javadoc/overview-frame.html" token="<A HREF="allclasses-frame.html" target="packageFrame">All Classes</A></FONT>"
+ value="<A HREF="allclasses-frame.html" target="packageFrame"><b>Core</b></A>
+ &nbsp;
+ <a href='overview-frame-with-extensions.html'>Show Extensions</a>
+ </FONT>"/>
+ <replace file="${build.dir}/javadoc/overview-frame-with-extensions.html" token="<A HREF="allclasses-frame.html" target="packageFrame">All Classes</A></FONT>"
+ value="<A HREF="allclasses-frame-with-extensions.html" target="packageFrame"><b>All</b></A>
+ &nbsp;
+ <a href='overview-frame.html'>Hide Extensions</a>
+ </FONT>"/>
+ <move file="${build.dir}/javadoc/allclasses-frame.html" tofile="${build.dir}/javadoc/allclasses-frame-with-extensions.html"/>
+ <copy file="${build.dir}/javadoc-core/allclasses-frame.html" tofile="${build.dir}/javadoc/allclasses-frame.html"/>
+ <replace file="${build.dir}/javadoc/allclasses-frame.html" token="All Classes" value="Core Classes"/>
</target>
<target name="no_aop"