ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sonnek, Ryan" <Ryan.Son...@bpc.com>
Subject propertyfile increments wrong.
Date Mon, 30 Dec 2002 16:43:45 GMT
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>


Mime
View raw message