ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wascally Wabbit <wascallywab...@earthling.net>
Subject Re: ANT arithmetic operation task ?
Date Fri, 12 Dec 2003 14:48:48 GMT
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


Mime
View raw message