Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 21319 invoked by uid 500); 8 Jul 2003 16:59:57 -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 21304 invoked from network); 8 Jul 2003 16:59:57 -0000 Received: from out1.smtp.messagingengine.com (HELO mail.messagingengine.com) (66.111.4.25) by daedalus.apache.org with SMTP; 8 Jul 2003 16:59:57 -0000 Received: from mail.messagingengine.com (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 43BEE121A7 for ; Tue, 8 Jul 2003 12:59:59 -0400 (EDT) Received: from 10.202.2.150 ([10.202.2.150] helo=mail.messagingengine.com) by messagingengine.com with SMTP; Tue, 08 Jul 2003 12:59:59 -0400 X-Epoch: 1057683599 X-Sasl-enc: CbD3/INGAbSv/60T7qRspw Received: from fastmail.fm (tc.telecomputing.no [213.203.17.243]) by www.fastmail.fm (Postfix) with ESMTP id A0E6712DE7 for ; Tue, 8 Jul 2003 12:59:58 -0400 (EDT) Message-ID: <3F0AF88C.6030109@fastmail.fm> Date: Tue, 08 Jul 2003 18:59:56 +0200 From: Igor Bukanov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701 X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@ant.apache.org Subject: Search for file in parent directories Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi! I would like to search for the given file name in the given directory or one of its parents and set a property to found location. Something like ant -find does. Are there any better way to do it then use when searching for a.txt: etc. Although it works if there is single a.txt in searched parent directories, but when there several a.txt, then trouble starts. First a warning will be produced about changing of property value, and second, it will set found-path to the outemost a.txt. I can fix the later by reversing order, but then I would depend on deprecated bahaviour. Any better ways to do it? Regards, Igor --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org