Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 61954 invoked from network); 22 Aug 2002 20:50:06 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Aug 2002 20:50:06 -0000 Received: (qmail 24180 invoked by uid 97); 22 Aug 2002 20:50:28 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 24138 invoked by uid 97); 22 Aug 2002 20:50:27 -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 24125 invoked by uid 98); 22 Aug 2002 20:50:26 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Sent: 22 Aug 2002 20:49:50 GMT Message-ID: <3D654E6E.2080206@ehatchersolutions.com> Date: Thu, 22 Aug 2002 16:49:50 -0400 From: Erik Hatcher User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Deriving from the MatchingTask References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You get all that for free just as you've stated. The only thing you need to provide is where to get the base directory for the implicit fileset. Have a look at any of the many tasks in Ant's codebase that extends MatchingTask for examples. The warning I'd give is that if you decide you want to support multiple filesets that its best not to extend MatchingTask as that makes things to kludgey and hacked, or so it feels to me. For single-fileset tasks its a good thing though. Erik Hensley, Richard wrote: > I'm creating a custom task that needs to look at a set of files. I'm > deriving the task from MatchingTask, and I think that means that the > task is bascially a FileSet, meaning that it supports the attributes and > elements that are documented in the FileSet portion of the ant > documentation. I'm trying to get a clear understanding of what I get for > "free" when deriving from the MatchingTask. > > Have I made a valid assumption? > > Richard Hensley > > -- To unsubscribe, e-mail: For additional commands, e-mail: