Hi, I came to know that with antcall task, the dependencies get executed even though it ran before. For example below, the target "B" gets executed 3 times (ideally it should only once). Is there a way to handle this? Your help will be much appreciated
<project name="test" basedir="." default="A"> <target name="A"> <antcall target="buildJar"> <param name="build.dir" value="tools"/> </antcall> <antcall target="buildJar"> <param name="build.dir" value="moduleA"/> </antcall> <antcall target="buildJar"> <param name="build.dir" value="moduleB"/> </antcall> </target> <target name="buildJar" depends="B"> <echo> Inside buildJar: ${build.dir}</echo> </target> <target name="B"> <echo>Inside dependency B</echo> </target> </project>