ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yuji Yamano <yyam...@kt.rim.or.jp>
Subject Re: Duplicate target names
Date Tue, 13 Jul 2004 16:42:03 GMT
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.

> parsing buildfile C:\dev\home\dfaFinSys\project\travel_web\build.xml 

> Build sequence for target `compile' is [dependencies, compile]
> Complete build sequence is [dependencies, compile, setup-workspace, 
> init, clean,
> jar, war, ]

> dependencies:
>     [subant] calling target jar in build file
> C:\dev\home\dfaFinSys\project\travel_web\build.xml
> parsing buildfile C:\dev\home\dfaFinSys\project\travel_web\build.xml 

> Build sequence for target `jar' is [dependencies, compile, jar]
> Complete build sequence is [dependencies, compile, jar, setup-workspace, 
> init,
> clean, war, ]
> 
> BUILD FAILED
> C:\dev\home\dfaFinSys\project\build-master.xml:145: subant task calling 
> a target
> that depends on its parent target 'dependencies'.

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.

Hope this helps.

-- Yuji Yamano <yyamano@kt.rim.or.jp>
  Loan me your funky mind. So I can play with it,
  for nothing is good unless you play with it. --George Clinton

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


Mime
View raw message