[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: jikes and dependencies with javac



Steve Robbins wrote:

> On Wed, 13 Oct 1999, Hamish Moffatt wrote:
>
> > Second question: I'm using jdk1.1.7 and having problems with
> > dependencies with javac. It looks a lot smarter than it really is!
> > It seems that if I have three files, class1.java which uses class2.java
> > which uses class3.java, and I "javac class1.java", it compiles all 3.
> >
> > If I then change class3.java, and re-run "javac class1.java",
> > it doesn't rebuild class3. Is there a fix to this?
>
> I never figured this out, either.  So a couple of years ago, I ended up
> writing a tool that parses java code and spits out dependencies in a form
> suitable for makefiles.  Think of the -MM flag of gcc.
>
> If you are interested:
>
>         http://www.cs.mcgill.ca/~stever/software/JavaDeps
>
> -S

see also, jikes +M

cc



Reply to: