Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 75782 invoked from network); 4 Jan 2006 23:59:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jan 2006 23:59:23 -0000 Received: (qmail 77139 invoked by uid 500); 4 Jan 2006 23:59:23 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 76791 invoked by uid 500); 4 Jan 2006 23:59:21 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 76780 invoked by uid 99); 4 Jan 2006 23:59:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2006 15:59:21 -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.141] (HELO heisenberg.zen.co.uk) (212.23.3.141) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2006 15:59:20 -0800 Received: from [82.69.78.226] (helo=[192.168.0.2]) by heisenberg.zen.co.uk with esmtp (Exim 4.30) id 1EuIX7-0003WA-BI for dev@forrest.apache.org; Wed, 04 Jan 2006 23:59:09 +0000 Message-ID: <43BC612D.2000108@apache.org> Date: Wed, 04 Jan 2006 23:58:37 +0000 From: Ross Gardler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@forrest.apache.org Subject: Re: Javascript file processing... References: <43BC01F2.5050204@cfas.org> <43BC0796.30209@apache.org> <20060104230958.GD21885@igg.indexgeo.com.au> <43BC5B4C.6040509@cfas.org> In-Reply-To: <43BC5B4C.6040509@cfas.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Heisenberg-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 CFAS Webmaster wrote: > Hmm... > > David Crossley wrote: ... >> You can see that default match at main/webapp/resources.xmap >> line 153 ... >> >> >> > mime-type="application/x-javascript" /> >> >> >> I wonder if we should change that so that it first >> looked in sub-directories and then looked at the >> top-level of resources/scripts/ >> >> > That would be nice for me, but is it the "right" thing to do for the > general case? In 0.8-dev this should be replaced by a locationmap match. There is no problem adding additional locations either in Forrest core where relevant or an overrided value in the projects own locationmap. >> Otherwise Paul, as always you can over-ride any >> match as Ross describes below. >> >> > I'd take you up on that, but it doesn't work. I think I've found the > "right place" for it, but it doesn't change the behavior. > > ... > > > ... > > mime-type="text/plain"/> > > > > > If map:match pattern... is placed almost anywhere else in the file it > doesn't validate. No matter where it's placed, it doesn't change the > behavior of Cocoon. :( You don't say which file you are placing this in. It should be in your project sitemap.xmap file, inside the pipelines element. See http://forrest.apache.org/docs_0_80/project-sitemap.html which has links to further docs. If that is where you are putting it then be aware of Davids observation that if your request is relative you will need to accomodate for that (the above match is an absolute match): Ross