

<project name="antcall demo" default="feed.one">
	<property file="zoo.properties"/>
	
	<!-- pass in parameters for animal and animal.eats -->
	<target name="feed" description="this is a callable target">
		<echo>${zoo.keeper} is going to feed the ${animal} his favorite: ${animal.eats}</echo>
	</target>
	
	<!-- real targets -->
	<!-- animal one -->
	<target name="feed.one">
		<antcall target="feed">
			<param name="animal" value="${animal.one}"/>
			<param name="animal.eats" value="${animal.one.eats}"/>
		</antcall>
	</target>
	
	<!-- real targets -->
	<!-- animal two -->
	<target name="feed.two">
		<antcall target="feed">
			<param name="animal" value="${animal.two}"/>
			<param name="animal.eats" value="${animal.two.eats}"/>
		</antcall>
	</target>	

	<!-- real targets -->
	<!-- animal three -->
	<target name="feed.three">
		<antcall target="feed" inheritAll="false">
			<param name="animal" value="${animal.three}"/>
			<param name="animal.eats" value="${animal.three.eats}"/>
		</antcall>
	</target>	

</project>