ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Duplicate target names
Date Tue, 13 Jul 2004 16:47:37 GMT
> -----Original Message-----
> From: Yuji Yamano [mailto:yyamano@kt.rim.or.jp]
> 
> On Tue, 13 Jul 2004 10:58:09 -0400,
> Laran Evans <lc278@cornell.edu> wrote:
> 
> > Can anyone explain this trace to me?  I'd be happy to provide the build
> > files involved if needed.
> 
> 1. ant calls "compile" target in travel_web/build.xml.
> 2. "compile" target depends on "dependencies" target,
>    so "dependencies" target is called.
> 3. "dependencies" target calls "subant" task.
> 4. "subant" task calls "jar" target in the same build.xml.
> 5. "jar" target depends on "dependencies" target in the same build.xml,
>    then build failed to avoid infinite dependency loop.

Interesting. I didn't know such a check existed.

Anyways, <subant> is designed to call other build files, not the current
one. Use <antcall> to call targets from the same build file. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message