I'm completely new to xDoclet so please forgive me for a couple of lame questions.
I need to write an xDoclet module and have now two problems.
1. I'm calling my proprietary template as follows:
<target name="generate-property-editors">
<xdoclet destdir="res">
<template
templateFile="mytemplate.xdt"
destinationFile="{0}PropertyEditor.java"/>
<fileset dir="src">
<include name="**/*.java"/>
</fileset>
</xdoclet>
</target>As a result, xDoclet generated one PropertyEditor per java class. However, I only need property editors for specific classes, say, for those having mytag.class class tag. How could I avoid generating files for other classes?
I've tried examining Hibernate module, but decided to as for help.
2. In the class I generate an array
protected final Property properties = new Property[]
{
<XDtMethod:forAllMethods>"foo", </XDtMethod:forAllMethods>
};(There's more complex processing instead of "foo", not plain string generation)
This results code like {"foo", ..., "foo", }. Last comma makes java code syntactically incorrect. How could I correct this situation?
Is there some kind of variables that soul allow doing something like:
<XDtMethod:forAllMethods>
<if variable is set>, </if variable is set>
<set the variable/>
"foo"
</XDtMethod:forAllMethods>
I would be grateful for your answers.
Bye. /lexi
------------------------------------------------------- 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
