DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21505>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21505 propertyfile does *2 instead of +1 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2003-07-11 14:19 ------- I have tried this, and I do not see anything abnormal. The documentation of the <propertyfile> task is maybe not clear about the fact that if the property file already exists, before the incrementations are done, the property file is loaded, doing the equivalent of <property file="xyz. properties"/> programmatically. Every time you execute BugDemoInit, you are going to increment foo by 1. Here is a valid demo, where BugDemoInit runs 3 times. The value of foo in the end is 3, in the bugDemoInit target. <project name="propertyfile" default="all"> <target name="all" depends="bugDemoInit"> <concat> <fileset file="bugPropFile"/> </concat> <echo message="foo is ${foo}"/> </target> <target name="bugDemoInit"> <delete file="bugPropFile" quiet="true"/> <echo>property is ${foo}</echo> <propertyfile file="bugPropFile"> <entry key="foo" default="0" value="1" operation="+" type="int"/> </propertyfile> <propertyfile file="bugPropFile"> <entry key="foo" default="0" value="1" operation="+" type="int"/> </propertyfile> <propertyfile file="bugPropFile"> <entry key="foo" default="0" value="1" operation="+" type="int"/> </propertyfile> <property file="bugPropFile"/> <echo>property is ${foo}</echo> </target> </project> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]