Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 27990 invoked from network); 5 Dec 2005 01:41:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Dec 2005 01:41:59 -0000 Received: (qmail 94957 invoked by uid 500); 5 Dec 2005 01:41:53 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 94874 invoked by uid 500); 5 Dec 2005 01:41:52 -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 94863 invoked by uid 99); 5 Dec 2005 01:41:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2005 17:41:52 -0800 X-ASF-Spam-Status: No, hits=3.3 required=10.0 tests=DNS_FROM_RFC_POST,RCVD_IN_WHOIS_BOGONS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [139.76.165.215] (HELO aismt08p.bellsouth.com) (139.76.165.215) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2005 17:41:51 -0800 Received: from ([90.152.52.46]) by aismt08p.bellsouth.com with SMTP id KP-AXPNC.91481477; Sun, 04 Dec 2005 20:41:19 -0500 Received: from 01AL10015010133.ad.bls.com ([90.152.53.171]) by 01al10015010118.ad.bls.com with Microsoft SMTPSVC(5.0.2195.6747); Sun, 4 Dec 2005 19:41:19 -0600 x-mimeole: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Inheriting patternset refid Date: Sun, 4 Dec 2005 19:41:19 -0600 Message-ID: <8CA1EE8AD467DA44AD0A4EE122E42B0B01ADD044@01AL10015010133> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Inheriting patternset refid Thread-Index: AcX4KP/8sLTdlnGJRbeG1ZGA4ZlQYgBE8oRA From: "Brown, Carlton" To: "Ant Users List" X-OriginalArrivalTime: 05 Dec 2005 01:41:19.0520 (UTC) FILETIME=[FD6F2200:01C5F93C] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > > Is it possible to declare a patternset with a reference id in a build > > file, and be able to dereference that id in another build file called by > > the task? There's a patternset that I keep using over and over > > in my build files, and it would be nice if there were a way to specify > > it once and be able to dereference it in other build files. >=20 > Sure. >=20 > > I've tried this a few ways, even explicitly forcing inheritAll to "true" > > even though it defaults to that, but it doesn't seem to work. >=20 > inheritAll is for properties only, not references. > use inheritRefs or a nested . >=20 > You could also consider putting common definitions into a build file, > for example common.xml, and it into your various builds. --DD Thanks Dominique, this was just the ticket. You rock. I refactored a 12,000 line build down to just over 1,200 using these techniques. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org