On Tue, 06 Apr 1999 20:39:54 +0000, Jonas Holmberg wrote:

>I have been trying to get javac (1.1.7 for linux) to recompile only
>those java-files newer than their class-files. Sun's documentation tells
>me that the "most-recent-change-times" of the files are checked if both
>the java- and the class-files are found in -classpath or CLASSPATH, but
>it doesn't seem to work. Is this a problem with the linux port of the
>javac in JDK1.1.7 or am I doing something wrong? I'm trying to get rid
>of a big nasty makefile which doesn't work properly so any help is
>appreciated. Have I got it right that one shouldn't have to use make,
>only javac, to get proper recompilation?

This is true if you use the -depend option on javac.  I use this all
the time.  The strange part is that javac will "touch" all of the
class files as needed when this happens.  Also, with -O it will end
up having to compile more than you thought due to some inlining.

Jikes does this a bit better (and it is sooo much faster that you
may not even notice if it were recompiling all files)

Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to