ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moon, Ed" <EM...@sonypictures.com>
Subject RE: propertyfile increments wrong.
Date Mon, 30 Dec 2002 18:58:28 GMT
Is the build.number file under source control?

I've seen issues when the build.number is checked out, preventing an update
to build.number.


-----Original Message-----
From: Chris Brown [mailto:brown2@reflexe.fr] 
Sent: Monday, December 30, 2002 9:45 AM
To: Ant Users List
Subject: Re: propertyfile increments wrong.



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" <Ryan.Sonnek@bpc.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
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:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
>
>
>



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

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


Mime
View raw message