You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Nagarajan Murugesan <NM...@Selectica.com> on 2003/12/12 15:00:56 UTC
ANT arithmetic operation task ?
Hi All,
Is there any ANT task for simple arithmetic operations like
addtion, substraction...and so.
Thanks,
Nagarajan
Re: ANT arithmetic operation task ?
Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
Check the <propertyfile/> task
Antoine
Nagarajan Murugesan wrote:
>Hi All,
>
>Is there any ANT task for simple arithmetic operations like
>addtion, substraction...and so.
>
>Thanks,
>Nagarajan
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: ANT arithmetic operation task ?
Posted by Wascally Wabbit <wa...@earthling.net>.
At 09:00 AM 12/12/2003, you wrote:
That depends. If you want to do simple addition/subtraction
from an existing property and put the result into another
property, the <export> task from http://www.antxtras.info can
do that. It's a bit long-winded but you can do something like:
<property name="start" value="100"/>
<property name="delta" value="25"/>
<export op="+" fromproperty="start" value="${delta}"
copyproperty="total"/>
The Wabbit
>Hi All,
>
>Is there any ANT task for simple arithmetic operations like
>addtion, substraction...and so.
>
>Thanks,
>Nagarajan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org