Javadoc生成用build.xml

サイトで見つからなかったので…


<?xml version="1.0"?>
<project name="seasar-javadoc" default="all" basedir=".">

<property name="src.dir" value="${basedir}/java" />
<property name="lib.dir" value="${basedir}/lib" />
<property name="doc.dir" value="${basedir}/apidocs" />
<property name="svn.src" value="https://www.seasar.org/svn/s2container/trunk/seasar2/s2-framework/src/main/java" />
<property name="svn.lib" value="https://www.seasar.org/svn/s2container/trunk/seasar2/lib" />

<target name="all">
<antcall target="export" />
<antcall target="javadoc" />
<antcall target="clean" />
</target>

<target name="export">
<delete dir="${src.dir}" />
<delete dir="${lib.dir}" />

<exec executable="svn">
<arg value="export" />
<arg value="${svn.src}" />
</exec>
<exec executable="svn">
<arg value="export" />
<arg value="${svn.lib}" />
</exec>
</target>

<target name="javadoc">
<delete dir="${doc.dir}" />
<mkdir dir="${doc.dir}" />

<javadoc destdir="${doc.dir}" encoding="UTF-8" docencoding="UTF-8" charset="UTF-8">
<sourcepath path="${src.dir}" />
<packageset dir="${src.dir}" />
<classpath>
<fileset dir="${lib.dir}" includes="**/*.jar" />
</classpath>
</javadoc>
</target>

<target name="clean">
<delete dir="${src.dir}" />
<delete dir="${lib.dir}" />
</target>

</project>