Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 44682 invoked from network); 15 Jan 2004 23:29:14 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Jan 2004 23:29:14 -0000 Received: (qmail 130 invoked by uid 500); 15 Jan 2004 23:28:53 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 99920 invoked by uid 500); 15 Jan 2004 23:28:52 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 99907 invoked from network); 15 Jan 2004 23:28:52 -0000 Received: from unknown (HELO appliqa.com) (66.207.206.34) by daedalus.apache.org with SMTP; 15 Jan 2004 23:28:52 -0000 Received: from [64.229.220.60] (account glen@round-table.ca HELO model3.net) by appliqa.com (CommuniGate Pro SMTP 3.5.9) with ESMTP-TLS id 1896468 for user@ant.apache.org; Thu, 15 Jan 2004 18:28:58 -0500 Message-ID: <40072238.2060304@model3.net> Date: Thu, 15 Jan 2004 18:28:56 -0500 From: Glen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: combining fileset's References: <20040115203053.62332.qmail@web20413.mail.yahoo.com> <40071C8C.7000602@model3.net> In-Reply-To: <40071C8C.7000602@model3.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I think I know what you are saying now. I have found this page on programming custom selectors http://ant.apache.org/manual/CoreTypes/selectors-program.html Which looks fairly straightforward. I am starting to code it now... Thanks :-) Glen wrote: > Matt I am intrigued could you elaborate or give an example? > > Are you suggesting I should create a custom selector that can take a > reference to another fileset? > > Or is what I am trying to do (combine fileset A and fileset b into > fileset C) possible with the selector's that come with 1.6 ? > > > > Matt Benson wrote: > >> Use selectors in Ant 1.6.0. >> >> -Matt >> >> --- Glen wrote: >> >> >>> I am wondering if there is an easier way to do >>> something. I have several different tasks each requiring a slightly >>> different classpath or fileset. I have modified my build.xml so >>> that I am >>> sharing this information as much as possible. You know if I add >>> a jar I only have to add it in one place in the build.xml and all the >>> proper places pick up the appropriate reference. >>> >>> My solution has been to define pattern sets, then >>> file sets using those pattern sets, and then a classpath from the file >>> sets (the code is at the bottom). It works great but I am a programmer >>> and I like to fiddle so here is what I am asking. >>> >>> Are there any ways to use just filesets and NO >>> pattern sets. Ultimately I would like to be able to combine to >>> filesets say >>> like so... >>> >>> >> file="./myproject/xyzpdq..jar" /> >>> >>> >>> >>> >>> >>> >>> This would greatly simplify the script at the end >>> because I currently have to create a pattern set and a file set for >>> each >>> bit I need. I am wondering if anyone has some clever recommendations >>> since I can't do what I just laid out (at least as far as I know)... >>> >>> >>> At least the when we add a jar now the build fails >>> once then we add the jar to the build.xml where as before it would fail >>> several times in a row each time showing a new place that needed the >>> jar referenced LOL >>> >>> >>> -Glen >>> >>> >>> >>> >>> >>> Here is the code snippet.... >>> >>> >>> >>> >> name="tools/resin3/lib/jsdk-24.jar" /> >>> >> name="tools/resin3/lib/resin.jar" /> >>> >>> >>> >> name="tools/xdoclet-1.2/lib/*.jar" /> >>> >>> >>> >>> >>> >>> >>> >> name="tools/sun/jaf-1.0.2/activation.jar"/> >>> >> name="tools/sun/javamail-1.3.1/mail.jar"/> >>> >>> >>> >>> >> name="tools/sun/jai-1_1_2/lib/*.jar" /> >>> >>> >> /> >>> >> name="tools/hibernate-2.1/lib/*.jar" /> >>> >>> >> name="tools/sun/commapi/lib/*.jar" /> >>> >>> >>> >>> >> name="birthprint/output/birthprint.jar" /> >>> >> /> >>> >> id="generated_jars.fileset" >>> dir="${code_root}" > >>> >> /> >>> >> refid="generated_jars.patternset" /> >>> >>> >>> >>> >> dir="${code_root}" > >>> >> /> >>> >> refid="generated_jars.patternset" /> >>> >>> >>> >> /> >>> >> name="tools/sun/jai-1_1_2/lib/*" /> >>> >>> >>> >> dir="${code_root}" > >>> >> /> >>> >>> >> dir="${code_root}" > >>> >> /> >>> >>>