From owner-freebsd-java Wed Feb 27 0: 9:20 2002 Delivered-To: freebsd-java@freebsd.org Received: from ool-18bace-250.dyn.optonline.net (ool-18bace-250.dyn.optonline.net [24.186.206.250]) by hub.freebsd.org (Postfix) with ESMTP id BFAAE37B402 for ; Wed, 27 Feb 2002 00:09:16 -0800 (PST) Received: (from cbr@localhost) by ool-18bacefa.dyn.optonline.net (8.11.6/8.11.6) id g1QJn5s20179; Tue, 26 Feb 2002 14:49:05 -0500 (EST) (envelope-from cbr) From: Christopher Rued MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15483.59052.247650.5380@ool-18bacefa.dyn.optonline.net> Date: Tue, 26 Feb 2002 14:49:00 -0500 To: Christopher Elkins Cc: Jeff Dalton , Brad Cox , freebsd-java@FreeBSD.ORG Subject: Re: What is ant good for? In-Reply-To: <20020226092104.G220@uqbar.lan.scardini.com> References: <23144.200202261659@todday> <20020226091136.F220@uqbar.lan.scardini.com> <20020226092104.G220@uqbar.lan.scardini.com> X-Mailer: VM 7.00 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > On Tue, Feb 26, 2002 at 09:11:36AM -0800, Christopher Elkins wrote: > > > > Yes. > > Sorry, not enough coffee yet. That should've been: > > No. That can get you *almost* there. There are two ways that I know of to use the javac target: 1) Name exactly the source file(s) you want to compile, and point it to the directory under which it can find all other .java files that may also need to be compiled; or 2) Tell it to compile somedir/**.java which will cause it to compile all java source files under the directory somedir, whether or not they are really needed by the particular application you are compiling. Lots of extra cruft. The problem with the first is that it does not check to see if a class file is older than the source. The problem with the second is that it compiles all .java files regardless of whether or not it is needed for the application. The way around it would be to name all of the .java files that *are* necessary, but this is kind of a hassle. If anyone has a better way of going about doing this, I'd be glad to hear it :). -- Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message