blob: 72cf7e613bf5534723b71c6c52bd163c1d33c189 [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.locate-findbugs">
<macrodef name="locate-findbugs">
<sequential>
<if>
<and>
<not><isset property="findbugs.location"/></not>
<isset property="env.FINDBUGS"/>
</and>
<then>
<var name="findbugs.location" value="${env.FINDBUGS}"/>
</then>
</if>
<if>
<not><isset property="findbugs.location"/></not>
<then>
<fail message="Could not locate FindBugs. Neither FINDBUGS environment variable nor findbugs.location system property is set."/>
</then>
</if>
</sequential>
</macrodef>
</project>