Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 69752 invoked from network); 19 Jun 2006 21:20:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jun 2006 21:20:32 -0000 Received: (qmail 75364 invoked by uid 500); 19 Jun 2006 21:20:26 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 75327 invoked by uid 500); 19 Jun 2006 21:20:26 -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 75316 invoked by uid 99); 19 Jun 2006 21:20:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 14:20:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of aaron.davies@gmail.com designates 64.233.184.233 as permitted sender) Received: from [64.233.184.233] (HELO wr-out-0506.google.com) (64.233.184.233) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 14:20:25 -0700 Received: by wr-out-0506.google.com with SMTP id 69so1289961wra for ; Mon, 19 Jun 2006 14:20:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bVhVvQWuMd6QnlHFQG9hOEzsKoMp6cnoSwDdF/z6A5E/uc2iI9rVFFuxDNJkdBJNBWUAYTQGHMrPZ0ZuKynOiSbxjVirGoGyJEgknBRTS9Vsrb67iZPPd1ThUDzVElTMOtH4uXzva7zDT4ZhbvQpm9gOZk5KQQe4zcLbRp93Xyc= Received: by 10.65.51.14 with SMTP id d14mr6222906qbk; Mon, 19 Jun 2006 14:20:04 -0700 (PDT) Received: by 10.65.83.19 with HTTP; Mon, 19 Jun 2006 14:20:04 -0700 (PDT) Message-ID: Date: Mon, 19 Jun 2006 17:20:04 -0400 From: "Aaron Davies" To: "Ant Users List" Subject: Re: Token Filters Questions In-Reply-To: <4497053d.671742a8.13e1.7e93@mx.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4497053d.671742a8.13e1.7e93@mx.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I've decided to go with option three: commit empty filter files to svn. The problem with option two is that we want to run our files past multiple filters, each of which may or may not exist, and doing this with if statements is extremely difficult. The problem with option one is that I'm lazy. ;-) On 6/19/06, Asaf Mesika wrote: > The way I see it, there's two solutions: > 1. Take the source for FiltersFile, and change the exception section, which > doesn't fit you. > 2. Check if the file exists, prior to it (using the tags in the > expansion pack, ant-contrib, I think) and then activate FiltersFile. > > Asaf > > > > -----Original Message----- > > From: Aaron Davies [mailto:aaron.davies@gmail.com] > > Sent: Monday, June 19, 2006 2:40 PM > > To: Ant Users List > > Subject: Re: Token Filters Questions > > > > If the filter is done with a property file > file="filter.properties"/> and the property file doesn't exist, an > > exception is thrown. Is there a way to do more graceful degradation? > > > > On 6/18/06, Asaf Mesika wrote: > > > I'm not sure I understood your question: How can a filter not exist? Can > > you > > > give an example? > > > > > > On 6/15/06, Aaron Davies wrote: > > > > > > > > A couple questions on token filters: > > > > > > > > First, is there a simple way to directly apply a filtersfile to an > > > > existing file, i.e. without moving/copying it? > > > > > > > > Second, is there an easy way to handle a filtersfile's not existing? > > > > I'd like to run a file through multiple filters, not all of which will > > > > actually exist, but the only way I can see to do that right now is to > > > > either wrap multiple copy-filter statements in available tests or to > > > > do the full truth table on all the filters and use it to generate the > > > > correct filterset. There's got to be a better option. > > > > -- > > > > Aaron Davies > > > > aaron.davies@gmail.com > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > > > For additional commands, e-mail: user-help@ant.apache.org > > > > > > > > > > > > > > > > > > > > -- > > Aaron Davies > > aaron.davies@gmail.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > For additional commands, e-mail: user-help@ant.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > -- Aaron Davies aaron.davies@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org