From owner-freebsd-java Tue Feb 26 9:24: 0 2002 Delivered-To: freebsd-java@freebsd.org Received: from Millions.Ca (h-207-228-120-32.gen.cadvision.com [207.228.120.32]) by hub.freebsd.org (Postfix) with ESMTP id 7883237B417 for ; Tue, 26 Feb 2002 09:23:55 -0800 (PST) Received: (from uucp@localhost) by Millions.Ca (8.11.1/8.9.3) id g1QHNn582972; Tue, 26 Feb 2002 10:23:49 -0700 (MST) (envelope-from stacy@Millions.Ca) Received: from Cedar.Millions.Ca(192.168.64.8) via SMTP by mail-gw-0.millions.ca, id smtpdV82970; Tue Feb 26 10:23:42 2002 Received: from millions.ca (Maple.Millions.Ca [192.168.64.2]) by cedar.millions.ca (8.11.1/8.11.3) with ESMTP id g1QHNgs16888; Tue, 26 Feb 2002 10:23:42 -0700 (MST) (envelope-from stacy@millions.ca) Message-ID: <3C7BC49E.43B396C7@millions.ca> Date: Tue, 26 Feb 2002 10:23:42 -0700 From: Stacy Millions Organization: Millions Consulting Limited X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Jeff Dalton Cc: freebsd-java@FreeBSD.ORG Subject: Re: What is ant good for? References: <23033.200202261608@todday> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Jeff Dalton wrote: > So I'm wondering whether ant does anything that would make it > worth the effort of learning to use it. It has a lot of built in functionality. For the project I am currently working on, I have a 250 line ant build file. From a cron job, I do a nightly build ant clean update jar which removes all class file and resource files, updates sources from the cvs server, build some java files using javacc, compiles everything and package everything up in their respective jar files. It will even sign the jars for you if you don't mind leaving your key passwords in the build file. If anything breaks in the nightly build, I go and beat on the person who committed something that does not build, sometimes, that is me :-( > Does it, for instance, work out the dependencies between files > to determine what needs to be recompiled and what doesn't? From the ant docs: The source and destination directory will be recursively scanned for Java source files to compile. Only Java files that have no corresponding class file or where the class file is older than the java file will be compiled. Note: Ant uses only the names of the source and class files to find the classes that need a rebuild. It will not scan the source and therefor will have no knowledge about nested classes, classes that are named different from the source file and so on. So, no it does not work out dependencies. That is why I like the fact that I can do "ant clean compile" and have everything recompiled fairly quickly. -stacy -- You'll see it's all a show. Keep 'em laughing as you go. Just remember that the last laugh is on you. - Monty Python _The Life Of Brian_ Stacy Millions stacy@millions.ca Millions Consulting Limited To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message