ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <hind.lwahh...@accenture.com>
Subject RE: macrodef: setting options dynamically
Date Wed, 15 Jun 2005 10:03:41 GMT
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.


Mime
View raw message