FYI.... XDoclet 1.2 does support Velocity and BSF within a template tag. I have some examples that I can post later, but don't have them handy right this second.
Erik
would be great ..
Here's a template that works with Velocity:
<XDtVelocity:generator>
currentClass is: ${currentClass.Name}Methods are:
#set ( $numMethods = 0 )
#foreach ($method in ${currentClass.methods})
$method.Name
#set ( $numMethods = $numMethods+1 )
#end
</XDtVelocity:generator>
num methods = <XDtVelocity:getVariable name="numMethods" />I placed this in velociraptor.xdt and used it like this:
<taskdef name="xdoclet"
classname="xdoclet.DocletTask">
<classpath>
<path refid="xdoclet.classpath"/>
<pathelement location="${build.dir}"/>
</classpath>
</taskdef>
<xdoclet destdir="${build.dir}"
force="true"><fileset dir="${src.dir}"/>
<template destinationfile="{0}.txt"
templatefile="templates/velociraptor.xdt"
/>
</xdoclet>I do not have a BSF example around, but it is used similarly. I suspect there is an example laying around somewhere in the archives, or on someone's blog.
Erik
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
