<project name="TODO" default="todo">
<description>
Generate the TODO List of the Current Project
</description>
<!-- Load the Environment Variables -->
<property environment="env"/>
<!-- set the Xdoclet 1 Installation Home Directory -->
<property name="xdoclet.home.dir" value="${env.XDOCLET_HOME}"/>
<!-- set the Xdoclet Library Directory -->
<property name="xdoclet.lib.dir" value="${xdoclet.home.dir}/lib"/>
<!-- set the Xdoclet Class Path-->
<path id="xdoclet.lib.path">
<fileset dir="${xdoclet.lib.dir}" includes="*.jar" />
</path>
<!-- see whether the XDOClet Is present in classpath -->
<available property="xdoclet.present"
classname="xdoclet.modules.doc.DocumentDocletTask"
classpathref="xdoclet.lib.path"/>
<property name="lib.dir" location="lib"></property>
<property name="src.dir" location="src/java"></property>
<property name="gen.src.dir" location="gensrc/java"/>
<property name="ejb.deployment.dir" location="deploy/ejb"/>
<property name="todo.dir" location="todo"/>
<!-- - - - - - - - - - - - - - - - - -
target: init
- - - - - - - - - - - - - - - - - -->
<target name="init">
<taskdef name="documentdoclet"
classname="xdoclet.modules.doc.DocumentDocletTask"
classpathref="xdoclet.lib.path"/>
<!--taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="xdoclet.lib.path" />
<taskdef name="webdoclet"
classname="xdoclet.modules.web.WebDocletTask"
classpathref="xdoclet.lib.path" / -->
</target>
<!-- =================================
target: todo
================================= -->
<target name="todo" depends="init" description="Generates TODO List">
<echo message="xdoclet.present = ${xdoclet.present}" />
<documentdoclet destdir="${todo.dir}">
<fileset dir="${src.dir}">
<include name="**/*.java"/>
</fileset>
<documenttags/>
</documentdoclet>
</target>
</project>
Saturday, April 5, 2008
Ant build script for xdoclet to generate todo list
Note: If you are using JDK 1.5+, don't forget to replace the default xjavadoc with xjavadoc 1.5 snapshot050611 jar.
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment