I added

<XDtMethod:forAllMethods>
<XDtMethod:ifHasMethodTag tagName="ejb:dao-method" param="name">
// TEST: [<XDtMethod:methodTagValue tagName="ejb:dao-method" param="name"/>]
</XDtMethod:ifHasMethodTag>
</XDtMethod:forAllMethods>

to the end of remote.j, and ran it over an EJB containing

    /**
     * @ejb:dao-method name="dao" number="one"
     */
    protected abstract ReportBatchDAO getDAO();
    /**
     * @ejb:dao-method name="findSomething"
     */
    public abstract Collection ejbFindSomething();

However, the generated code contained

// TEST: [name="findSomething"]
// TEST: [name="dao" number="one"]

instead of [findSomething] and [dao] that I'd been expecting.  I thought 
XDocletTagSupport.getParameterValue() was meant to take account of foo="bar" 
form parameters and return just the value.  Is it a bug or am I missing 
something?

Also, I don't think it's the cause of my problem, but I notice the code for 
getParameterValue includes the comment
// we might have " - XXX: this code needs to be checked... dim.
shortly before a line that has
    if( value.startsWith( "\"" ) && value.startsWith( "\"" ) )
- I'm pretty sure those shouldn't both be startsWith.

I also tried running it with paramnum=0 included in my methodTagValue 
template tag (and also paramnum="0"), but that doesn't work either - in 
fact, I then get

[ejbdoclet] Running XDoclet failed.
[ejbdoclet] <<Running XDoclet failed.>>
[ejbdoclet] 1 error
[ejbdoclet] 2 warnings
[ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain,  method 
start has thrown an exception java.lang.reflect.InvocationTargetException

instead.


Andrew.

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to