blob: 1bb9f19fd9615a2d46355bef33be6da3f8c8e633 [file] [log] [blame]
<!--
******************************************************************************
* Copyright (c) 2016 Oracle
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Konstantin Komissarchik - initial implementation and ongoing maintenance
******************************************************************************
-->
<project name="corundum.macro.increment">
<macrodef name="increment">
<attribute name="property"/>
<attribute name="amount"/>
<sequential>
<propertycopy name=".temp" from="@{property}" override="true"/>
<var name="@{property}" unset="true"/>
<math result="@{property}" operation="+" operand1="${.temp}" operand2="@{amount}" datatype="long"/>
<var name=".temp" unset="true"/>
</sequential>
</macrodef>
</project>