Thanks for the response, Erik..
In response to your question of context, I am experimenting in the
template used by utilobject: lookup.xdt.
Okay, after a bit more testing, I believe my problem stems from the
fact that I want to process an xdoclet generated file. Specifically,
I wish to walk through the methods of an EJB's home interface.
Given the following source/dest file structure:
root/
com/
blah/
ejb
util
etc
gen/
com/
blah/
ejb
interfaces
vo
util
And an <ejbdoclet> task with the subtasks in the following order:
<fileset dir=".">
<include name="com/blah/ejb/*.java"/>
</fileset>
<packageSubstitution packages="ejb" substituteWith="interfaces"/>
<localinterface pattern="{0}" />
<localhomeinterface pattern="{0}Home" />
<entitypk />
<entitycmp />
<session />
<fileset dir=".">
<include name="com/blah/ejb/*.java"/>
<include name="gen/com/blah/**/*.java"/>
</fileset>
<utilobject cacheHomes="true" templateFile="lookup.xdt"/>
** - Notice I am using my own lookup.xdt ...
simply a copy of the original with my test added to the end.
The following code works for the local component interface. It
correctly lists out the methods of the interface.
<XDtEjbCmp:ifEntityIsCmp>
<XDtEjbIntf:componentInterface type="local"/>
<XDtClass:pushClass value="<XDtEjbIntf:componentInterface type='local'/>">
<XDtClass:fullClassName/>
<XDtMethod:forAllMethods>
method = <XDtMethod:methodName/>
</XDtMethod:forAllMethods>
</XDtClass:pushClass>
</XDtEjbCmp:ifEntityIsCmp>
However, the modified version of the code below will not enumerate the
methods of the home interface (which lives in the same dir/pkg as
the component interface). I have tried this with the gen'd CMP class
as well with no luck.
<XDtEjbCmp:ifEntityIsCmp>
<XDtEjbHome:homeInterface type="local"/>
<XDtClass:pushClass value="<XDtEjbHome:homeInterface type='local'/>">
<XDtClass:fullClassName/>
<XDtMethod:forAllMethods>
method = <XDtMethod:methodName/>
</XDtMethod:forAllMethods>
</XDtClass:pushClass>
</XDtEjbCmp:ifEntityIsCmp>
Any ideas?
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user