blob: ced232d9e6c940eb2a6786b1fe6484b1c84eea4a [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.with-target">
<macrodef name="with-target">
<attribute name="name"/>
<element name="body" implicit="yes"/>
<sequential>
<install-target name="@{name}"/>
<propertycopy property=".target" from="target-@{name}" override="true"/>
<body/>
<var name=".target" unset="true"/>
</sequential>
</macrodef>
</project>