From owner-freebsd-java Tue Feb 26 8:47:20 2002 Delivered-To: freebsd-java@freebsd.org Received: from ops-03.itg.discovery.com (ops-03.itg.discovery.com [198.147.14.35]) by hub.freebsd.org (Postfix) with ESMTP id E18EF37B436 for ; Tue, 26 Feb 2002 08:46:55 -0800 (PST) Received: by ops-03.itg.discovery.com; id LAA06925; Tue, 26 Feb 2002 11:45:49 -0500 (EST) From: patrick@freebsd.org Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <23033.200202261608@todday> Date: Tue, 26 Feb 2002 11:47:15 -0500 (EST) To: Jeff Dalton Subject: RE: What is ant good for? Cc: freebsd-java@freebsd.org 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 Well, you could say the same thing about "make", if you've used it. It's funny you should bring this up right now, since I was writing an ant build file to compile our JMS server code in the office. Just taking the default build.xml from the docs did nearly everything I wanted it to do. I just wrote it, added a classpath tag, and I was set. It does work out the dependencies, so that's taken care of. Whether or not you use it depends on how complex your build is right now. To build using ant, you just type "ant". Then it does the rest for you. Much nicer in a group environment than trying to figure out how to compile something, with a large number of jars, etc. If you just type "javac com/blah/test/*.java", you probably don't need ant. Otherwise, you would be better off learning ant. It's not that tough. Really. Patrick On 26-Feb-2002 Jeff Dalton wrote: > I've been reading the "tools" discussion, and all I use is emacs, > jdk, and Netscape for reading the on-line documentation. The only > change I'm tempted to make is to start using ant. > > But every time I've looked at anyone's ant script (is script > the right word?), it's seemed alarmingly complex. > > So I'm wondering whether ant does anything that would make it > worth the effort of learning to use it. > > Does it, for instance, work out the dependencies between files > to determine what needs to be recompiled and what doesn't? > > -- Jeff > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message