Bernd Kreimeier wrote: > The weird logic in which javac handles or ignores > dependencies (esp. source files more recent than > class files) never ceases to annoy me. Does anybody > have a decent solution to share that creates > dependencies from "import" and makes them work with > JDK? > > b. > I use the wondeful "JavaDeps" ( http://www.cs.mcgill.ca/~stever/software/JavaDeps/ ). It parses your ".java" files and generate dependecy rules that can be included in a makefile. Suppose I have a directory structure like this : project / src/ classes/ doc/ jars/ And here is my Makefile : ------------------ JAVACOMPILE = jikes -classpath classes:$(CLASSPATH) -d classes all: real_all include .deps real_all: $(CLASSES) sourcelist: find . -name '*.java' > .sourcefiles deps: Makefile jdeps -d classes -f .sourcefiles > .deps docs: polardoc -d doc -r -private -version -author src/ jars: real_all sh ./.makejars ----------------- When used for the first time or when you just added a new source file to your projet you must do : 1- generate a list of all the source files in your projet (make sourcelist) 2- generate dependancies (make deps)
begin:vcard n:Trussart;Vincent x-mozilla-html:TRUE org:Université de Montréal adr: version:2.1 email;internet:[EMAIL PROTECTED] note:ICQ# 4357910 x-mozilla-cpt:;-28736 fn:Vincent Trussart end:vcard