--- jaques robert <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I'd like to pass a parameter from my ant build.xml
> file to a xdt file in order to create a condition
> depending on this parameter.
> 
> Do you know a simple way to do that ?
> 
> For exemple I've got the task <entitycmp/> I'd like
> to pass it an argument and in the corresponding
> entity-body.xdt file make some stuff like :
> <<
> <XDT:ifParameter="myParam">
>    <XDT:if <XDT:getValueFrom="myParam"> then
>        bla bla bla
>    </XDT>
>    <XDT:else>
>    blublu
>    </XDT>
> </XDT>
> >>


If you are developing your own task, you may pass a
parameter to it and then retrieve it in the template
( lke eoher tasks do ) 

If you like to add something to existing task, 
you will need to patch it.

All infromation is available in sources ;)

Thouigh I would recommend to start xdoclet-2 plugin if
you plan to develop something new. 
regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to