Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 64767 invoked from network); 30 May 2002 03:54:40 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 30 May 2002 03:54:40 -0000 Received: (qmail 12647 invoked by uid 97); 30 May 2002 03:54:35 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 12611 invoked by uid 97); 30 May 2002 03:54:34 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 12599 invoked by uid 98); 30 May 2002 03:54:34 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <018801c2078d$afd41450$4b678f80@darden.virginia.edu> From: "Erik Hatcher" To: "Ant Users List" References: <003501c20670$fe74b380$6401a8c0@darden.virginia.edu> <1022675986.17735.67.camel@spawn.se7en.org> Subject: Java Development with Ant (was: Re: Ant: The Definitive Guide (Orielly)) Date: Wed, 29 May 2002 23:54:23 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "Mark Derricutt" > I see your book will cover writing custom ant tasks, how detailed does > this section go? The Ant docs on it don't really say much, and the > only other things I've had said about it is "just look at the code of > the existing tasks", which doesn't really help either. Well, not when > you want to know whats really capable of being done. I don't recall whether Steve answered this specifically earlier today, but.... We have a chapter on writing custom tasks, which covers how Ant's introspection works and the necessary naming conventions (setXXX, addXXX, etc) to add attributes and elements. It covers how to get datatypes supported like FileSet and Path. Developing wrapper tasks for native O/S programs and Java programs gets special attention and examples because these are important reasons (native O/S particularly) for writing custom tasks (and we say, "make sure won't work for you before diving into writing a custom task" :). Bits of Ant's API is covered, but not extensively (as we do refer you to Ant's Javadocs and source code too) - things like DirectoryScanner gets covered a little, as well as useful things like Project.getProperty/setNewProperty. Also, as an added 1.5 bonus, coverage of the new DynamicConfigurator is there. So, all in all, I'd say we do solid coverage of writing custom tasks and a skilled Java programmer could take that information and quite easily write custom tasks right away. Also, another chapter deals with writing custom listeners/loggers/selectors/mappers and