Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 11561 invoked from network); 20 Feb 2001 19:41:05 -0000 Received: from roma.axis.se (193.13.178.2) by h31.sny.collab.net with SMTP; 20 Feb 2001 19:41:05 -0000 Received: from klatt.axis.se (klatt.axis.se [10.0.5.41]) by roma.axis.se (8.9.3/8.9.3) with ESMTP id UAA08236 for ; Tue, 20 Feb 2001 20:40:18 +0100 (MET) Received: by klatt.axis.se with Internet Mail Service (5.5.2653.19) id <1058N2DW>; Tue, 20 Feb 2001 20:40:03 +0100 Message-ID: From: Peter Nilsson To: "'ant-user@jakarta.apache.org'" Subject: RE: ant is incompatible with JDK javac 1.3 Date: Tue, 20 Feb 2001 20:40:33 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > Is the "build" dir intended to be relative? I have mine set > to D:\build and > it works fine. I thought it made sense to make it relative to the property "basedir" which also works fine, but that's not the problem here of course. (The problem is that ant:s seems to be unaware of the fact that jdk javac puts the class files in sub directories of the build directory, not in the build directory itself) > And this is with jdk1.3, modern compile. > Plus, ant doesn't > do any recompilation checking in the task. My > understanding is that > it is all handled by javac. Really? You seem to run jdk on Windows, I actually run it on Linux and for 1.3 all options regarding recompilation are disabled (the non-standard -X options). I have never used those options but at least I can say that without them I couldn't find any way to make javac do recompilation checking. All it does is to compile java files implicitly during the type search if necessary. However, if I help ant:s out a bit and copy the class files into the build directoty (from the sub directories created by javac), is smart enough not to recompile. /PN > > K.C. > > > -----Original Message----- > > From: Peter Nilsson [mailto:peter.nilsson@axis.com] > > Sent: Tuesday, February 20, 2001 9:18 AM > > To: 'ant-user@jakarta.apache.org' > > Subject: ant is incompatible with JDK javac 1.3 > > > > > > ant's built in target "javac" is incompatible with javac 1.3 > > (at least). If I set the its attribute "destdir" to build > > directory "build", JDK javac 1.3 will, since its given the > > parameter '-d build', create sub directories matching the > > package name under "build" and put the compiled class files > > in there. However, ant assumes the class files are put > > directly under "build" and will therefore recompile everytime > > it's invoked since no class files is ever found during its > > "up-to-date" check. > > Is there a work around except for omitting the "destdir" > > attribute and clutter the src directory with class files > > (in which case javac doesn't create sub directories)? > > /Peter > > > > > > Don't miss the opportunity to stay ahead of the latest developments! > > Visit Axis at CeBIT - Hall 11 - Stand G62 > > March 22 - 28, 2001- Hannover, Germany > > > > Get your hands on and evaluate the latest networking > > solutions for the > > converging world of wired and wireless. All in one place, > at one time! > > > > For more information www.axis.com > > >