Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 96194 invoked by uid 500); 11 Sep 2001 12:05:54 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 96154 invoked from network); 11 Sep 2001 12:05:53 -0000 Message-ID: From: Rouiller Claude To: "'ant-user@jakarta.apache.org'" Subject: javac and dependencies Date: Tue, 11 Sep 2001 14:07:14 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="ISO-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi I have 2 source files: a.java and b.java. In a.java, I use a class that is defined in b.java. Imagine I've just compiled both files. If I modify only b.java and I call Ant again, Ant will call the compiler for b.java only. (This is not a surprise, because it is written in the Ant documentation "Only Java files that have no corresponding class file or where the class file is older than the java file will be compiled.") What I would like Ant to do is to recompile both files, even when I don't change a.java. A solution is to "clean" every time before calling the compiler. Is there any nicer solution?? Claude