ant

condition逻辑判断:

<project name="testCondition">
    <target name="test">
        <condition property="condition">
            <istrue value="true"/>                    
        </condition>
        <antcall target="isTrue"></antcall>
        <antcall target="isFalse"></antcall>        
    </target>
    <target name="isTrue" if="condition">
        <echo>is ture</echo>
    </target>
    <target name="isFalse" unless="condition">
        <echo>is false</echo>
    </target>
</project>

原文地址:https://www.cnblogs.com/rigid/p/3955856.html