ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vishal Kamat" <vishalka...@gmail.com>
Subject Query regarding antcall task
Date Wed, 26 Mar 2008 23:59:23 GMT
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>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message