<project name="antcall-task-test"
         default="default-target">

    <target name="default-target">
        <echo message="In default target."/>
    </target>

    <target name="antcall-target">
        <property name="test-prop" value="test-value"/>
        <echo message="In antcall-target: test-prop = [${test-prop}]"/>
    </target>

    <!-- Basic <antcall> -->
    <target name="antcall-test">
        <!-- <antcall with default target -->
        <antcall/>

        <!-- <antcall> with defined target (No property overrides) -->
        <antcall target="antcall-target"/>

        <!-- Override property within task def -->
        <antcall target="antcall-target">
            <param name="test-prop" value="set in calling task"/>
        </antcall>

        <!-- Override property in containing project -->
        <property name="test-prop" value="set in calling target"/>
        <antcall target="antcall-target"/>

        <!-- Test inherit-all = false -->
        <antcall target="antcall-target" inheritall="false"/>
    </target>

</project>
