If I remember correctly the idea that was going around was to have a separate task that will do the dependency analysis and will delete those .class files affected.
After that, the <javac> class can just work as is. The advantage here is that we do not need to touch <javac> and only those that really want this feature will invoke it. Jose Alberto > -----Original Message----- > From: Peter Donald [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 24, 2000 6:25 PM > To: [EMAIL PROTECTED] > Subject: RE: Dependencies between classes > > > At 02:39 24/10/00 -0400, you wrote: > >I think we'll al be disappointed if we implement this. The > compilers and > >the compiler spec itself change. They may get even > "smarter" in terms of > >dependencies and render any intelligence in Ant void or, > even worse, a > >hindrance. Any changes we make should follow closely with > the intentions of > >Sun and their specifications for the compiler. We run into > the same issues > >with where optimization is located. The concepts of object oriented > >compilation, how byte code is handled and deployment will, > for the near > >future, be of some contention as the "kinks are worked out". > What if javac > >suddenly wants to compile straight to a WAR or JAR? How > would dependencies > >be handled outside of the compiler? > > > >Anyway, just brining up points as to why this is a very > difficult design > >decision. > > I agree - ironically it is also faster to delete the source > tree and do a > full recompile under jikes ;) (if project < 800 files). Thou > until jikes is > standard it would be useful if there was an enhanced version that did > dependancy checking. It would not be used in some cases (ie > jikes or if > user sets preference) but in other cases it will be used. > Anyways - no harm > in trying to get it going - if it fails we can always junk it ;) > > Cheers, > > Pete > > *------------------------------------------------------* > | "Nearly all men can stand adversity, but if you want | > | to test a man's character, give him power." | > | -Abraham Lincoln | > *------------------------------------------------------* >
