Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 50564 invoked from network); 28 Jun 2002 20:55:36 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by 209.66.108.5 with SMTP; 28 Jun 2002 20:55:36 -0000 Received: (qmail 12302 invoked by uid 97); 28 Jun 2002 20:55:41 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 12286 invoked by uid 97); 28 Jun 2002 20:55:41 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 12273 invoked by uid 98); 28 Jun 2002 20:55:40 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <20020628205530.21781.qmail@web13402.mail.yahoo.com> Date: Fri, 28 Jun 2002 13:55:30 -0700 (PDT) From: Diane Holt Subject: Re: Must specify a file not a directory in the filtersfile attribute To: Ant Users List In-Reply-To: <20020627224845.16331.qmail@web11502.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N --- Olivier Gourment wrote: > I want to use a filter file ONLY if it exists. The name of this filter > file includes a variable part with a ${property}. When I do that and > the filtersfile does not exist, I get the following error: > > Must specify a file not a directory in the filtersfile > attribute:filters01.properties The fact that part of the file name is a specified via a property doesn't matter -- just the fact that the file doesn't exist does. > First, the error message is a little misleading. I'd say not only misleading, but a bug, since it should say something about the file not being found, not tell you've specified a directory when clearly you haven't. Want to supply a patch? > Second, is there a way to make this work, apart from creating an > empty file named filters01.properties? If you can live with Ant barking at you about overriding a reference, yes: Diane ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: