In xdoclet I use a template file and applied it to a set of Java files
to produce desired output. Here is an example Ant build target adapted
from the tutorial at:
http://www.liuzehua.com/xdoclet_tutorial/<target name="prepare">
<taskdef name="xdoclet" classname="xdoclet.DocletTask"
classpathref="xdoclet.class.path" />
</target>
<target name="gensrc" depends="prepare" description="invoke XDoclet to
generate code">
<xdoclet destdir="${xdoclet.gen-src.dir}"
excludedtags="@version,@author,@todo" force="${xdoclet.force}"
verbose="true" >
<fileset dir="${xdoclet.src.dir}">
<include name="**/CLArguments.java"/>
</fileset>
<template destinationFile="{0}Impl.java"
templateFile="${xdoclet.template.dir}/clarguments_impl.xdt"
subTaskName="Command line arguments" />
</xdoclet>
</target>
The code I am applying this to is written using Java 6 features like
annotations, enums and generics. Xdoclet chokes when it tries to parse
these elements. Two questions:
* · Can Xdoclet2 perform this?
* · If yes, can you show me Ant build code that accomplishes
this?
If I can, I want to work with Ant, rather than Maven.
Thank you,
John L.
------------------------------------------------------------------------------
_______________________________________________
xdoclet-user mailing list
xdoclet-user@...
https://lists.sourceforge.net/lists/listinfo/xdoclet-user