You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by dl...@christian.net on 2004/09/01 16:16:41 UTC
Antcall doesn't change dir when the target build.xml's "target name" duplicates with the current one name, bug?
Hi list,
I found that <antcall> task doesn't change to the correct dir
> when the target
build.xml's "target name" duplicates with the current
> one. For
example, when A/build.xml <antcall> B/build.xml. Both one
> have a
compile target. Here's the content of A/build.xml:
..
<target
> name="compile">
<antcall dir="../B" antfile="build.xml"
> target="compile"/>
</target>
..
When I do "ant compile" under A, Ant
> will only compile A's source
files, instead of B. But when the two
> build.xml's target
differentiates in name, this problem doesn't seem
> to exist. For ex,
if A's compile target tries to call B's "ejbdoclet"
> target, then It's
just fine.
I am using Ant 1.6.1, Any idea? Thanx
> in advance!
-
layman
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Antcall doesn't change dir when the target build.xml's "target name" duplicates with the current one name, bug?
Posted by Jacob Kjome <ho...@visi.com>.
You mean <ant/> not <antcall/>
Jake
Quoting dlayman@christian.net:
> Hi list,
> I found that <antcall> task doesn't change to the correct dir
> > when the target
> build.xml's "target name" duplicates with the current
> > one. For
> example, when A/build.xml <antcall> B/build.xml. Both one
> > have a
> compile target. Here's the content of A/build.xml:
> ..
> <target
> > name="compile">
> <antcall dir="../B" antfile="build.xml"
> > target="compile"/>
> </target>
> ..
>
> When I do "ant compile" under A, Ant
> > will only compile A's source
> files, instead of B. But when the two
> > build.xml's target
> differentiates in name, this problem doesn't seem
> > to exist. For ex,
> if A's compile target tries to call B's "ejbdoclet"
> > target, then It's
> just fine.
>
> I am using Ant 1.6.1, Any idea? Thanx
> > in advance!
>
>
> -
> layman
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org