<target name="default"> <antcall target="doSomethingElse"> <param name="param1" value="value"/> </antcall> </target> <target name="doSomethingElse"> <echo message="param1=${param1}"/> </target>Will run the target 'doSomethingElse' and echo 'param1=value'.
<antcall ... > <reference refid="path1" torefid="path2"/> </antcall>will copy the parent's definition of path1 into the new project using the id path2.