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>

 

posted on 2014-09-04 13:08  rigidwang  阅读(133)  评论(0编辑  收藏  举报