Hmmm, I don't know of any way to have the SUN compiler generate the classes the way you describe if you really have circular dependencies between the 2 projects. Eclipse must be using its own compiler to do that.
Again, assuming you really have circular dependencies, you can't compile projectA and projectB independently without having either's src/ dir in the sourcepath, or the compiled classes of one in the classpath, but to have the latter you end up with a chicken-and-egg pb, while the former implies (with SUN's compiler) that some of the other project classes will be output in the first projects build/ dir. I hope I am making sense to you ;-) Good luck, "avoid circular dependencies between projects" (tm) --DD On 3/12/06, TH Lim <[EMAIL PROTECTED]> wrote: > Hi, > > I have a directory structure that looks something like > this > > -Projects/ > -ProjectA/ > +build/ > +src/ > +package1 > -ProjectB/ > +build/ > +src/ > +package2 > > > I'm using Eclipse 3.x and have set each subproject > source to be built with in each subproject build > directory i.e. classes from ProjectA/src will be > compiled into ProjectA/build and ProjectB/src will be > compiled into ProjectB/build. > > Some of the sources in ProjectA/src depends on sources > in ProjectB/src and vice versa > > The classes generated by Eclipse are specific to its > subproject i.e. in ProjectA/build I will only see > package1 and the classes benefit it and package2 is > NOT generated in this subproject. The same goes for > ProjectB. > > Is there anyway I could do the same for Ant? This is > because Ant generates both packages in ProjectA/build > directory. Is there a 3rd party library that allows me > to do so? > > I'm using Ant 1.6.5. > > Thanks > > /lim/ > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]