ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henk van Voorthuijsen <voo...@xs4all.nl>
Subject Re: Number expression in Ant?
Date Mon, 25 Oct 2010 19:47:10 GMT
If the property is in a property file you can use the "PropertyFile" task:

<PropertyFile file="my.properties">
  <entry key="foo" type="int" operation="+" value="50"/>
</PropertyFile>

On Oct 25, 2010, at 4:31 AM, hezjing wrote:

> Hi
> 
> Imagine that I have a property with the value "100", then I want to add 50
> to it and get the result as 150.
> 
> How can I do this in Ant?
> 
> 
> -- 
> 
> Hez


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


Mime
View raw message