Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 13724 invoked from network); 11 Jan 2001 16:06:30 -0000 Received: from mail.alphalink.com.au (203.24.205.7) by h31.sny.collab.net with SMTP; 11 Jan 2001 16:06:30 -0000 Received: from donalgar (d404-ps3-mel.alphalink.com.au [202.161.110.216]) by mail.alphalink.com.au (8.9.3/8.9.3) with SMTP id DAA09372; Fri, 12 Jan 2001 03:06:34 +1100 Message-Id: <3.0.6.32.20010112025823.00e5b100@alphalink.com.au> X-Sender: gdonald@alphalink.com.au X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Fri, 12 Jan 2001 02:58:23 +1100 To: ant-user@jakarta.apache.org From: Peter Donald Subject: Re: why do filters and properties work differently? Cc: "'ant-user@jakarta.apache.org'" In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N At 09:54 11/1/01 -0600, Tim Dawson wrote: >Properties support values that contain references to other properties >(through @foo@) when loading a properties file. >Filters do not support this when using filterfile. > >The only workaround I've discovered is to define properties for the values >you want and then do a filter based on that property, e.g. > > > > >Where foobar.properties contains: > foo = @bar@ > bar = Hello World > >Doing the specific filter/token/value hack works when you have only a few >filters that need to do this, but it's a real pain when you really just want >to define a filterfile and have it work, especially if you have a number of >filters that rely on values specified in properties. It uglies up the >build.xml file and makes maintenance harder when you change things. > >Any ideas why filters are the way they are? Any reason not to change it? I think it is that way because of evoultion - properties evolved faster because are widely used and filters never caught up. Feel free to send patches to ant-dev to correct this behaviour thou ;) Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*