From owner-freebsd-java Tue Feb 26 9: 6:12 2002 Delivered-To: freebsd-java@freebsd.org Received: from azrael.xs4all.nl (azrael.xs4all.nl [213.84.50.139]) by hub.freebsd.org (Postfix) with ESMTP id 0233437B400 for ; Tue, 26 Feb 2002 09:06:09 -0800 (PST) Received: (from remco@localhost) by azrael.xs4all.nl (8.11.6/8.11.6) id g1QH61555894; Tue, 26 Feb 2002 18:06:01 +0100 (CET) (envelope-from remco) Date: Tue, 26 Feb 2002 18:06:00 +0100 From: "Remco van 't Veer" To: Jeff Dalton Cc: freebsd-java@FreeBSD.ORG Subject: Re: What is ant good for? Message-ID: <20020226170600.GN88307@azrael.xs4all.nl> References: <23033.200202261608@todday> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23033.200202261608@todday> User-Agent: Mutt/1.3.27i X-Spook: tekka BNC Hmong van Balen Lanceros SE Treasury WISDIM WHCA AIMSX 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 The main advantage of ant is portability. Ant features alot of nice build-in tasks for coping/deleting files, java stuff like jar javac javadoc rmic etc, execution of sql statements via jdbc, processing of xslt, downloads ala wget, cvs stuff, applying patches etc. etc. It's quite powerful. It is relatively easy to write a build.xml which downloads all needed sources, compiles and installs. Adding new specialized tasks isn't very hard either. I see alot of messages in this thread stating ant will work out dependencies between files. I guess people are refering to the javac task. In my experience it does not work out dependencies. Try compiling to classes A and B, with A depending on method B.something(). Now edit B and remove the something() method then recompile again using ant and you will see only B will be compiled. No errors, no warnings, but A is not functional.. HTH, Remco On Tue, Feb 26, 2002 at 16:08, 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 -- Our duty is to execute a strategic plan to visualize our leadership skills so that we may produce money for our executive officers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message