You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by hi...@accenture.com on 2005/06/16 11:07:34 UTC

FW: macrodef: setting options dynamically(bis)



-----Original Message-----
From: hind.lwahhabi@accenture.com [mailto:hind.lwahhabi@accenture.com]
Sent: Wed 6/15/2005 12:03 PM
To: user@ant.apache.org
Subject: RE: macrodef: setting options dynamically
 
hi jan;
i already saw the manual but my goal is a little bit more complex; i want to do the following:
attribute1 and attribute2 belong to macrodef SomeMacro.
<macrodef name="SomeMacro">
if attribute1=x
then attribute2="blablabla @{attribute1"
else
attribute2="other blabla"
</macrodef>

Thanks for any help.



-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Wed 6/15/2005 11:53 AM
To: user@ant.apache.org
Subject: AW: macrodef: setting options dynamically
 
>In a macrodef definition,how can i set option2 from a macrodef 
>based on option1 from the same macrodef?
See manual - last example.

>Can i use IF Task from ant-contrib.?
Yes


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.




This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.