--- build.xml.orig 2011-01-31 00:09:08.000000000 +0000 +++ build.xml 2011-01-31 17:27:20.116631224 +0000 @@ -15,6 +15,7 @@ <property name="build.classes.dir" value="${build.dir}/classes" /> <property name="build.testresults.dir" value="${build.dir}/testresults" /> <property name="dist.dir" value="dist" /> + <property name="docs.dir" value="docs" /> <property name="jar.file" value="${build.dir}/${mchange-commons.name}.jar" /> <property name="jvm.target.version" value="1.5" /> @@ -33,6 +34,7 @@ <target name="init"> <mkdir dir="${build.dir}" /> <mkdir dir="${dist.dir}" /> + <mkdir dir="${docs.dir}" /> </target> <target name="clean"> @@ -105,5 +107,13 @@ <target name="tested-install" if="install.jar.dir" depends="tested-dist,install" /> + <target name="javadoc" description="Compile API documentation"> + <javadoc sourcepath="${java.src.dir}" destdir="${docs.dir}" access="protected" + doctitle="${mchange-commons.name} API" windowtitle="${mchange-commons.name} API" packagenames="*" + nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false"> + <classpath refid="build-classpath" /> + <link offline="true" href="http://java.sun.com/j2se/1.5.0/docs/api/" packagelistloc="/usr/share/javadoc/java/" /> + </javadoc> + </target> </project>