ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <>
Subject RE: Cyclic dependency problem
Date Thu, 17 Jul 2003 18:58:58 GMT
If Jan's suggestion doesn't work... what we did (best thing is to eliminate
any circular references, refactor) was create several temp.jars
(ServletTemp, EJBtemp, etc) and added those jars to the classpath. We had
the jars updated during certain intervals to capture any new classes (if
time is not an issue you could update the jars after every <javac> call...we
were on a time crunch and did that until we could figure out where to place
the update jar calls). Our build was driven by a "driver" build file which
called sub projects to build the other pieces. This was a hack but did the
trick until the cycles were removed. Getting rid of the cycles eliminated
the need for the temp jars, we can now do full, clean builds.


-----Original Message-----
From: [] 
Sent: Monday, July 14, 2003 5:27 AM
Subject: RE: Cyclic dependency problem 

Why you donĀ“t compile the whole project with one <javac/>?
The java compiler does the dependency checks.


> -----Original Message-----
> From: Manav Ahuja []
> Sent: Monday, July 14, 2003 12:20 PM
> To: Ant Users List
> Subject: Cyclic dependency problem
> Hi all,
>   My prob is as follows:
>     I have a project wherein I have different packages some 9
> in number.
> E.g A,B,C,D and so on and so forth.
> Now my problem is that File in A depend on B, File in B 
> depends on C, C
> on D ..and again D on a cyclic dependency is there between the
> individual files. I want to write a build.xml which can take 
> care of all
> the internal dependencies whatsoever and compile whole project at one
> shot. 
>  Currently I have tried making each package a separate target and then
> invoking the other target through the "depends" command but with fail.
> Now Can anyone help me to solve this dependency problem. Is there any
> kinda tag or command in ANT through which I can zoom ahead.
>   Any imputs are welcome...
> Thankx in advance,
> Manav
> **************************Disclaimer**************************
> **********
> Information contained in this E-MAIL being proprietary to
> Wipro Limited is 
> 'privileged' and 'confidential' and intended for use only by 
> the individual
>  or entity to which it is addressed. You are notified that 
> any use, copying 
> or dissemination of the information contained in the E-MAIL 
> in any manner 
> whatsoever is strictly prohibited.
> **************************************************************
> *************
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message