ehatcher 02/02/26 21:26:03
Added: proposal/xdocs build.xml
proposal/xdocs/templates defaults_properties.template
Log:
First pass at XDoclet generation of Ant task documentation.
(sorry for the multiple commits, still getting a lock error on big commit
attempts)
Revision Changes Path
1.1 jakarta-ant/proposal/xdocs/build.xml
Index: build.xml
===================================================================
<?xml version="1.0" ?>
<project name="XDoclet" default="gen">
<property name="log4j.jar" location="../../lib/optional/log4j.jar"/>
<property name="xdoclet.jar" location="lib/xdoclet.jar"/>
<property name="src.dir"
location="../../src/main/org/apache/tools/ant/taskdefs"/>
<property name="src.root"
location="../../src/main"/>
<property name="build.dir" location="build"/>
<property name="gen.dir" location="${build.dir}/gen"/>
<property name="template.dir" location="templates"/>
<property name="defaults.properties.template"
location="${template.dir}/defaults_properties.template"/>
<property name="xdoc.template"
location="${template.dir}/task_xdoc.template"/>
<path id="xdoclet.classpath">
<pathelement location="${log4j.jar}"/>
<pathelement location="${xdoclet.jar}"/>
<!-- javadoc is needed -->
<pathelement path="${java.class.path}"/>
<pathelement location="${build.dir}"/>
</path>
<taskdef name="document"
classname="xdoclet.doc.DocumentDocletTask"
classpathref="xdoclet.classpath"/>
<target name="init">
<mkdir dir="${build.dir}" />
<mkdir dir="${gen.dir}" />
</target>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="src" destdir="${build.dir}"
debug="true" classpathref="xdoclet.classpath"/>
</target>
<target name="gen" depends="compile">
<delete dir="${gen.dir}"/>
<document sourcepath="${src.root}"
destdir="${gen.dir}"
classpathref="xdoclet.classpath">
<fileset dir="${src.dir}">
<include name="*.java" unless="class.name"/>
<include name="${class.name}.java" if="class.name"/>
</fileset>
<template templateFile="${defaults.properties.template}"
destinationfile="defaults.properties"/>
<!-- <template templateFile="${xdoc.template}"
destinationfile="{0}.xml" extent="concrete-type"/> -->
<template subTaskClassName="org.apache.tools.ant.xdoclet.AntSubTask"
templateFile="${xdoc.template}"
destinationfile="{0}.xml" extent="concrete-type"/>
</document>
</target>
</project>
1.1
jakarta-ant/proposal/xdocs/templates/defaults_properties.template
Index: defaults_properties.template
===================================================================
<XDtTagDef:tagDef namespace="Ant"
handler="org.apache.tools.ant.xdoclet.AntTagsHandler"/>
<!-- @todo: add forAllTasks -->
<XDtClass:forAllClasses>
<XDtAnt:taskName/>=<XDtClass:fullClassName/>
</XDtClass:forAllClasses>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>