Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: How to compile co-dependent files

jpiser

2008-02-21

Replies: Find Java Web Hosting

Author LoginPost Reply

I solved my problem for the time being by refactoring my classes to adhere to
a strict convention whereby the compile order is A,B,C and the observed
convention is:

target A requires no other classes - (just simple display objects)
target B references classes in A only - (EJBs)
target C can reference classes in A or B - (utility/controllere beans)

But, my original question was: Is it possible for classes in A to reference
classes in B or C? Or classes in B to reference classes in C? etc. etc.

I wanted to spare everyone the burden of including my build file as I think
my question is more general than specific. Thanks!



mojoRising wrote:
>
> Hi. I am new to using ANT and hope someone can help me with this, I am
> sure most basic, question which has confounded me.
>
> I have 2 targets. Each target contains a file that has references to a
> class in the other target. I can't build successfully because the first
> target can never compile since the second target hasn't been built yet.
>
> What am I doing wrong?
>
> Thanks so much for anyhelp you can offer -
>
> John
>

--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.