ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David McTavish <dmctav...@SANDVINE.com>
Subject RE: propertyfile increments wrong.
Date Mon, 30 Dec 2002 16:55:52 GMT
Another thing you may want to check is if the target that contains the
BuildNumber task is called multiple times? 
ie: if it runs every time you compile, but the "source" files are a
dependency of another build script which calls this target, it could
inadvertantly be executed multiple times.

d.

PS: Eric, what is the process of submitting an enhancement to an existing
task (ie: BuildNumber)? Or at least submit design changes as the task as it
is seems very limited?



-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com] 
Sent: Monday, December 30, 2002 11:50 AM
To: Ant Users List
Subject: Re: propertyfile increments wrong.


Ryan,

I did a fair bit of work with <propertyfile> attempting to fix a lot of 
issues with it between 1.4.1 and 1.5.  I'm not aware of this problem 
(or I would have fixed it :) - could you come up with a test case that 
duplicates the issue in a repeatable fashion?  If so, I could probably 
fix it easily.

	Erik



On Monday, December 30, 2002, at 11:43  AM, Sonnek, Ryan wrote:
> running ant 1.5.1 on win2k box i get strange behavior when
> incrementing a
> property value.  the build.number property will increase by one, but
> occationaly it will double.  the behavior i have seen is something 
> like:
> 1, 2, 3, 4, 8, 9, 18, etc.
>
>     <echo message="increment the build counter" />
>     <propertyfile file="build/build.number">
>       <entry  key="build.number" type="int" operation="+" value="1" />
>     </propertyfile>
>
> has anyone seen this, or is there some other way to reliably increment
> a
> property?
> thanks.
> 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