You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Telang, Nandan" <te...@amazon.com> on 2005/11/10 20:10:46 UTC

Duplicate project name with antcall and import

Hi

I have an ANT script that looks something like this:

<project name="foo">  
      <import file="bar" />

      <target name="A">
       .....

       <target name="B">
       ....


       <target name="C">
             <antcall target="A" />
             <antcall target="B" />
       </target>

</project>

I get a "Duplicated project name in import" that says the project name of the project in bar is redefined in another file that bar imports(that has no project name)
However it works fine if I use depends instead of the antcall or if I call the targets A and B directly ?

How do I fix this ?

Thanks,
-Nandan