Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 50951 invoked from network); 2 May 2008 01:39:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 May 2008 01:39:56 -0000 Received: (qmail 776 invoked by uid 500); 2 May 2008 01:39:54 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 740 invoked by uid 500); 2 May 2008 01:39:54 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 729 invoked by uid 99); 2 May 2008 01:39:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 18:39:54 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [207.69.200.58] (HELO pop05.mail.atl.earthlink.net) (207.69.200.58) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2008 01:38:58 +0000 Received: from nc-71-49-176-136.dhcp.embarqhsd.net ([71.49.176.136] helo=flossware.homelinux.org) by pop05.mail.atl.earthlink.net with esmtp (Exim 3.36 #1) id 1JrkF3-0003ot-00 for user@ant.apache.org; Thu, 01 May 2008 21:39:17 -0400 Received: from workstation.flossware.com (workstation.flossware.com [192.168.168.2]) by flossware.homelinux.org (Postfix) with ESMTP id EBA545FED8 for ; Thu, 1 May 2008 21:39:16 -0400 (EDT) Message-ID: <481A70C4.5010400@mindspring.com> Date: Thu, 01 May 2008 21:39:16 -0400 From: "Scot P. Floess" Reply-To: floess@mindspring.com User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: Ant Users List Subject: Re: Programmatically create a fileset and reference References: <481A1C47.40405@snet.net> In-Reply-To: <481A1C47.40405@snet.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Have you considered using a macrodef and elements? Maybe something like: Then you can supply whatever you want in as long as it adheres to allowances.... Jeremy Weber wrote: > Hi All, > > I have created dozen of custom tasks before, but find myself > struggling with this one. I wish to create a task that does the > following: > > 1. Accepts a file attribute to represent the absolute path of a file > contains comma separated absolute paths. > a. this file name will be read in, parsed and each file found will > be added to a fileset object, which in term is added to a resources > object. > 2. Accepts a id property > a. this id will be the id of the resource created in step 1a. > > So essentially I want... > > > > I am unclear on how to add the fileset i create in my code to the > project. Additionally I am unsure of how to assign this an 'id' that > I can reference elsewhere. Basically what I want to be able to do is > create a collection of files on the fly which I can reference on the > fly. Essentially in the following snippet, the resources element > would be replaced by my new task element > > > > > > > > > > > > > > > > > > > > > > > Any help at all would be appreciated. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org