ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Dettori" <markus.dett...@wuerth-phoenix.com>
Subject Re: increment integer task
Date Thu, 19 Dec 2002 16:17:25 GMT

----- Original Message -----
From: "Euan Guttridge" <EGuttridge@buildonline.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Thursday, December 19, 2002 5:13 PM
Subject: increment integer task


> Has anyone succesfully got the "math" task running in Ant? (from the add
on
> in Antelope). Or.. does anyone know of another task which will increment
an
> integer variable?
>

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>


Mime
View raw message