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.
Erik ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 increments > a number used for automatic version labeling in VSS. As far as I can see Ant > 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 >