ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Euan Guttridge <EGuttri...@buildonline.com>
Subject RE: increment integer task
Date Thu, 19 Dec 2002 17:11:06 GMT
Thanks, propertyfile task works perfectly for my purposes. For future
reference of this list:

<!-- Increment build.properties -->
 <target name="increment">
	<propertyfile
    	file="/${release_env}/build.properties"
	    comment="used for CVS">
		<entry  key="start" type="int" operation="+" value="1"/>
		<entry  key="current" type="int" operation="+" value="1"/>
	</propertyfile>
 </target>


================================================

Hi,
I use the optional propertyfile task to count in a temporary file.

    <propertyfile file="loadtest.properties" comment="Temporary File ">
        <entry key="load.count" type="int" default="0" operation="+"/>
        <entry key="max.count" type="int" value="${max.count}"/>
    </propertyfile>

That counts well ;-)

M.



--
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