From cathal@vccomputers.ie Wed Feb 21 21:26:53 2001 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 7035 invoked from network); 21 Feb 2001 21:26:53 -0000 Received: from mail1.tinet.ie (HELO kodos.tinet.ie) (159.134.237.22) by h31.sny.collab.net with SMTP; 21 Feb 2001 21:26:53 -0000 Received: from [159.134.206.223] (helo=colossus) by kodos.tinet.ie with smtp (Exim 2.05 #1) id 14Vgle-0003rG-00 for ant-user@jakarta.apache.org; Wed, 21 Feb 2001 21:25:46 +0000 Message-ID: <000f01c09c4c$bc611360$dfce869f@colossus> From: "Cathal McGinley" To: References: <000b01c09bc5$82b47120$9dce869f@colossus> Subject: Re: MatchingTask breaks with **/*~ pattern Date: Wed, 21 Feb 2001 21:24:51 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N I think I've solved my own problem > > > > the task seems to get caught in an infinite loop and the JVM runs >out of memory after about 4 minutes. Curiously, if I substitute >includes="*/*~" the task works fine (but only deletes files in the basedir >directory). I think, from messing about with my custom task, that the >problem lies somewhere around the getDirectoryScanner method of FileSet. On >the other hand, no-one else seems to be having this problem, so it's >probably just a stupid mistake on my part. I've figured out that there was indeed an infinite recursion, but *my* fault. Running under Linux, I foolishly had a reflexive soft link somewhere in my non-code files: /home/time/Desktop/Home -> /home/time and when the DirectoryScanner went piling into the Desktop directory it kept looping around those links until it ran out of memory and died. In this light, the above symptoms are entirely explicable. Solution: Don't use recursive soft links under UNIX environments. I tried excluding the "Desktop" directory but gave up messing about after several variations didn't work. Recursive sym links are bad practice anyway. Mea culpa! Thanks for the zen-inspirational help C.