Transition from xdoclet to xdoclet2

View: New views
2 Messages — Rating Filter:   Alert me  

Transition from xdoclet to xdoclet2

by John Leonard-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Parent Message unknown Re: Transition from xdoclet to xdoclet2

by mario_nabble :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


--- On Tue, 6/23/09, John Leonard <jleonard.20081@...> wrote:
> * · Can Xdoclet2 perform this?

Yes it can.

> * · If yes, can you show me Ant build code that accomplishes
>       this?

http://xdoclet.codehaus.org/XDoclet+Invocation+through+Ant

HTH,
M



     

------------------------------------------------------------------------------
_______________________________________________
xdoclet-user mailing list
xdoclet-user@...
https://lists.sourceforge.net/lists/listinfo/xdoclet-user