blob: 45b29e9929961c65ce951a7ef85163acee30c893 [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.find-eclipse-executable-folder">
<macrodef name="find-eclipse-executable-folder">
<attribute name="property"/>
<attribute name="eclipse"/>
<sequential>
<if>
<available file="@{eclipse}/Eclipse.app/Contents/MacOS" type="dir"/>
<then>
<var name="@{property}" value="@{eclipse}/Eclipse.app/Contents/MacOS"/>
</then>
<else>
<var name="@{property}" value="@{eclipse}"/>
</else>
</if>
</sequential>
</macrodef>
</project>