ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: Ant - automaticly increment a number
Date Tue, 23 Oct 2001 10:34:22 GMT
The way I've seen this done is through the <propertyfile> task.  Its <entry>
sub-elements allow numeric operations to increment values.  If you need that
updated value as an Ant property, you can follow with a <property
file="..."/> task to load it - just watch out for property immutability and
don't have the property you want to load already defined as an Ant property.


----- Original Message -----
From: <>
To: <>
Sent: Tuesday, October 23, 2001 4:35 AM
Subject: Ant - automaticly increment a number

> Hi,
> I am trying to use Ant to control my VSS tasks.
> What I would like to do is to have an Ant target that automaticly
> a number used for automatic version labeling in VSS. As far as I can see
> properties are Strings only and there are no tasks for handling them like
> numbers.
> Hopes for a speedy answer - even if its a 'no can do'.
> Regards
> Nino

View raw message