Wrong, take a look at EjbDocletSubTask.getContext(), this overridden one puts some 
values in it. Anyway I think we should make it more general by putting all javabean 
properties of DocletTask and friends in it. Another limitation is the approach Ant 
takes to find attributes of Tasks. They should be explicitly defined with get/set 
methods. This is limiting for templatedoclet, because if you want to use a config 
param then you have to define your own DocletTask-derived class. I should take a 
closer look at Ant's introspector and find a more dynamic implicit way to tackle it.

Ara.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:xdoclet-user-
> [EMAIL PROTECTED]] On Behalf Of Henri Chen
> Sent: Friday, January 04, 2002 5:42 AM
> To: [EMAIL PROTECTED]
> Subject: [Xdoclet-user] How do we set the Config parameter of a specified
> paramName?
> 
> Hi! Guys,
> 
> The XDtConfig:configParamValue template tage will call
> ConfigTagHandler.getConfigParamValue() which in turn will try to call the
> access method with the specified paramName of the active subTask. If it
> cannot find the match method(NoSuchMethodException), it will try to find
> the DocletContext's configs HashTable to get one. I checked the code of
> DocletContext, the configs seems created as an empty HashTable and then
> just leave there as is. So the code in
> ConfigTagHandler.getConfigParamValue() will cause a  NullPointerException.
> 
>       getDocletContext().getConfigParam( param_name ).toString();
> 
> How can I stuff in some Config parameter?
> 
> Henri Chen
> 
>]?n梓熝)b?b組搳旡塞娣炮?熒~zw?菈??玒?叛賥?囫蜌l炮)舝﹎^塞


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to