opensubscriber
   Find in this group all groups
 
Unknown more information…

x : xdoclet-user@lists.sourceforge.net 24 June 2009 • 11:08AM -0400

[Xdoclet-user] Transition from xdoclet to xdoclet2
by John Leonard

REPLY TO AUTHOR
 
REPLY TO GROUP






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@list...
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.