Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 92809 invoked from network); 29 Dec 2005 14:52:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Dec 2005 14:52:59 -0000 Received: (qmail 17997 invoked by uid 500); 29 Dec 2005 14:52:56 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 17923 invoked by uid 500); 29 Dec 2005 14:52:56 -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 17894 invoked by uid 99); 29 Dec 2005 14:52:55 -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 06:52:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.23.3.142] (HELO rutherford.zen.co.uk) (212.23.3.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2005 06:52:52 -0800 Received: from [82.69.78.226] (helo=[192.168.0.2]) by rutherford.zen.co.uk with esmtp (Exim 4.34) id 1Erz8o-0001SY-Ci for user@forrest.apache.org; Thu, 29 Dec 2005 14:52:30 +0000 Message-ID: <43B3F814.3000008@apache.org> Date: Thu, 29 Dec 2005 14:52:04 +0000 From: Ross Gardler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) 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> In-Reply-To: <499888440512290509v1f1589d8pb1d8bad9b763845e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Rutherford-IP: [82.69.78.226] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Tim Williams wrote: > On 12/29/05, Ross Gardler wrote: > >>David Crossley wrote: >> >>>Torsten Stolpmann wrote: >>> >>> >>>>David Crossley wrote: >>>> >> >>... >> >> ... >>>>For the and >>>>the blocks the changes consist of an >>>>additional statement. >>> >>> >>>For that sort of change, i recommend that you >>>make your adjustments directly to the core sitemap. >> >>I disagree. Modifying the core sitemap will create problems upgrading to >>future versions of Forrest as the changes will have to be merged, and >>there are *lots* of changes in the next release. By doing it in a >>project sitemap there should be no need to edit the extension. >> >>I think you will also need to copy the "skinit" resource into your >>project sitemap to make this work, but try it without first (less >>maintenance when upgrading). >> >>An alternative approach would be to use an internal plugin. However, in >>this case since the Dispatcher will make doing this kind of thing much >>easier the plugin is unlikely to be reused. Therefore I wouldn't bother >>with the extra overhead. >> >> >>>The project sitemap is not really intended to over-ride >>>the core in this way. See comments by Tim earlier in this >>>thread. >> >>There is no problem with the project sitemap overriding core. In fact it >>is designed to do so. Just make sure the only matches in your sitemap >>are for the pipelines you want to override. In this case the "**.html" >>ones. >> >>Ross > > > I think you're going to run into problems overriding only the **.html > and **/*.html pipes. I played around a bit yesterday with this but > didn't have time to come to any real solution. I *think* what's > happening is that it is recursively calling itself when it gets to the > body-*.html, menu-*.html, etc matches since **.html is such a greedy > match. I confirmed there's no major problem with your sitemap by > changing the extension to html2 and manually putting in an .html > extension in the aggregation section. Yes, that is a good point. 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). Ross