No, the limitation is Ant, and that's why I was seeking an alternative
IntrosectionHelper. We can easily change the XDtConfig stuff but how
does the user define new config params? There should be a get/set, as
Ant requires, so you need a custom subtask class with the get/set. I was
seeking a way to chain a hastable-based config param system in it
(instead of Ant's get/set/reflection-based system) but seems like it's
not possible in Ant1.x. So we have to provide a workaround, something
like this:

<template ...>
        <config-param name="param" value="my value"/>

Sure it seems odd when you compare it with <template param="my value"/>
but there's no other choice for now. In your template file you'll be
able to work with param as usual (XDtConfig:configParamValue
name="param" ...). I'll try to implement it this weekend.

Ara. 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:xdoclet-user-
> [EMAIL PROTECTED]] On Behalf Of Erik Hatcher
> Sent: Thursday, January 17, 2002 4:05 AM
> To: [EMAIL PROTECTED]
> Subject: [Xdoclet-user] Config params
> 
> Is it possible to use config parameters in regular templates?  I think
I
> read somewhere that a custom subtask is required, but I just wanted to
get
> confirmation.
> 
> If you can use parameters with standard templates, could someone
provide
> an
> example of their use?
> 
> Thanks,
>     Erik
> 
> 
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



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

Reply via email to