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

Re: jikes and dependencies with javac



Hamish Moffatt <hamish@debian.org> writes:

> 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?

javac -depend class1.java

> Alternatively, can I tell javac not to do any internal dependencies,
> so I must name them all? Otherwise things can fail silently.
> I was changing one source file tonight, recompiling the main class,
> and not seeing my changes.

find . -name '*.java' | xargs javac

	- Ruud de Rooij.
-- 
ruud de rooij | *@spam.ruud.org | http://ruud.org | http://weer.moonblade.net


Reply to: