<project name="if-unless-test"
         default="if-unless-tests">

    <target name="if-unless-tests"
            depends="setup-props,
                     if-set-test, if-unset-test,
                     if-true-test, if-false-test,
                     unless-set-test, unless-unset-test,
                     unless-true-test, unless-false-test,
                     if-with-unless-test-1, if-with-unless-test-2,
                     if-with-unless-test-3"/>

    <target name="setup-props">
        <property name="prop-set" value="set"/>
        <property name="prop-true" value="true"/>
        <property name="prop-false" value="false"/>
    </target>

    <target name="if-set-test" if="prop-set">
        <echo message="Ran target: if-set-test"/>
    </target>

    <target name="if-unset-test" if="prop-unset">
        <echo message="Ran target: if-unset-test"/>
    </target>

    <target name="if-true-test" if="prop-true">
        <echo message="Ran target: if-true-test"/>
    </target>

    <target name="if-false-test" if="prop-false">
        <echo message="Ran target: if-false-test"/>
    </target>

    <target name="unless-set-test" unless="prop-set">
        <echo message="Ran target: unless-set-test"/>
    </target>

    <target name="unless-unset-test" unless="prop-unset">
        <echo message="Ran target: unless-unset-test"/>
    </target>

    <target name="unless-true-test" unless="prop-true">
        <echo message="Ran target: unless-true-test"/>
    </target>

    <target name="unless-false-test" unless="prop-false">
        <echo message="Ran target: unless-false-test"/>
    </target>

    <target name="if-with-unless-test-1" if="prop-set" unless="prop-unset">
        <echo message="Ran target: if-with-unless-test-1"/>
    </target>

    <target name="if-with-unless-test-2" if="prop-unset" unless="prop-unset">
        <echo message="Ran target: if-with-unless-test-2"/>
    </target>

    <target name="if-with-unless-test-3" if="prop-set" unless="prop-set">
        <echo message="Ran target: if-with-unless-test-3"/>
    </target>
</project>
