ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Brown" <>
Subject Re: propertyfile increments wrong.
Date Mon, 30 Dec 2002 17:44:38 GMT

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

- Chris

----- Original Message -----
From: "Sonnek, Ryan" <>
To: "'Ant Users List'" <>
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
> targets depend on this one.  each time i run the build script, init is
> 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:   <>
> For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message