ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vishal Kamat" <>
Subject Query regarding antcall task
Date Wed, 26 Mar 2008 23:59:23 GMT
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 target="buildJar">
                        <param name="build.dir" value="moduleA"/>

                <antcall target="buildJar">
                        <param name="build.dir" value="moduleB"/>

	<target name="buildJar" depends="B">
                <echo> Inside buildJar: ${build.dir}</echo>

	<target name="B">

                <echo>Inside dependency B</echo>


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