Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 26616 invoked from network); 29 Dec 2005 16:23:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Dec 2005 16:23:10 -0000 Received: (qmail 9078 invoked by uid 500); 29 Dec 2005 16:23:09 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 9048 invoked by uid 500); 29 Dec 2005 16:23:08 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 9037 invoked by uid 99); 29 Dec 2005 16:23:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2005 08:23:08 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of Torsten.Stolpmann@verit.de designates 212.43.69.156 as permitted sender) Received: from [212.43.69.156] (HELO sirius.verit.de) (212.43.69.156) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2005 08:23:06 -0800 Received: from [192.168.0.105] (host-71-024.wlan.free42.de [212.43.71.24]) (authenticated bits=0) by sirius.verit.de (8.13.1/8.13.1) with ESMTP id jBTGMcSF017538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Dec 2005 17:22:43 +0100 Message-ID: <43B40D4E.2020200@verit.de> Date: Thu, 29 Dec 2005 17:22:38 +0100 From: Torsten Stolpmann Organization: verit Informationssysteme GmbH User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@forrest.apache.org Subject: Re: OutOfMemoryException with customized project sitemap. Was: linkmap customization References: <438F152A.5030801@greenjaguar.com> <1133453413.9959.53.camel@localhost> <438F2477.30907@apache.org> <43B054AD.9040807@verit.de> <499888440512270650i22b27304q2992c6a5defd439f@mail.gmail.com> <43B15C39.1010909@verit.de> <20051228041748.GB8677@igg.indexgeo.com.au> <43B2B9E4.3080503@verit.de> <20051229024149.GA1813@igg.indexgeo.com.au> <43B3BC4B.1030204@apache.org> <499888440512290509v1f1589d8pb1d8bad9b763845e@mail.gmail.com> <43B3F814.3000008@apache.org> In-Reply-To: <43B3F814.3000008@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > The solution is therefore to use a regexp matcher in the project sitemap > so that it does not match body-* and menu-* etc. This will allow you to > use the sitemap extension mechanism without touching the core sitemap. I > *strongly* advise against touching any of the core Forrest files as it > will cause problems for you in upgrading Forrest in the future. > > There are examples of regexp matchers in the core sitemap. I'm pretty > poor with regular expressions, if you don't know what to put in the > pattern ask here, I'm sure there will be someone who can tell you how to > match > > **.html but not (**/menu-*.html or **/body-*.html or **/tabs-*.html) > > (I think they are the only ones you need to avoid). > So this would be something like ^(?!tab-|menu-|body-).*.html$ and ^.*/(?!tab-|menu-|body-).*.html$ respectivly. Unfortunatly jakarta-regexp (which is used inside cocoon) doesn't seem to support the negative lookahead (?!...) and gives me a 'RESyntaxException: Syntax error: Missing operand to closure'. This already been reported on the regexp mailing list (See: http://permalink.gmane.org/gmane.comp.jakarta.regexp.user/168). Too bad - jakarta-oro supports perl5 regexps. I'll go hunting for a supported regexp and will report in later. A big thanks to all who were replying so far! Torsten