I can confirm having seen this behaviour in the past. It also occurs with the buildnumber task.
I couldn't create a reliable test case either... Sometimes I could run the same task as you around 1000 times without problem, other times just once or twice. And it was really erratic, because if I spotted the error, then manually updated the property file to try and recreate the error WITH THE SAME PROPERTY VALUE, it wouldn't reliably repeat itself... :-( Look back through the archives to messages I posted around 18th January 2002. - Chris ----- Original Message ----- From: "Sonnek, Ryan" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Monday, December 30, 2002 6:12 PM Subject: RE: propertyfile increments wrong. > thank you both for your quick responses! > the incrementing of the build number occurs in my INIT target, and all other > targets depend on this one. each time i run the build script, init is only > run once. i wish i could write some kind of test case for this but it > appears to happen erratically, but i'll see if i can recreate it reliably. > > <echo message="increment the build counter" /> > <propertyfile file="build/build.number"> > <entry key="build.number" type="int" operation="+" value="1" /> > </propertyfile> > > #build.number property file. > #Mon Dec 30 10:46:31 CST 2002 > project.minor.version=2 > build.number=90 > project.major.version=0 > > i've included the script again and my properties file, if anyone else has > any ideas. > Ryan > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>