Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 78754 invoked from network); 19 Jan 2005 22:29:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Jan 2005 22:29:28 -0000 Received: (qmail 64183 invoked by uid 500); 19 Jan 2005 22:29:25 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 64144 invoked by uid 500); 19 Jan 2005 22:29:25 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 64130 invoked by uid 99); 19 Jan 2005 22:29:25 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 10.21.96-84.rev.gaoland.net (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 19 Jan 2005 14:29:24 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 8047452DA7 for ; Wed, 19 Jan 2005 23:31:17 +0100 (CET) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05969-07 for ; Wed, 19 Jan 2005 23:31:15 +0100 (CET) Received: from [127.0.0.1] (unknown [10.0.0.220]) by mail.anyware-tech.com (Postfix) with ESMTP id 0667652DA5 for ; Wed, 19 Jan 2005 23:31:14 +0100 (CET) Message-ID: <41EEDF3F.2090800@apache.org> Date: Wed, 19 Jan 2005 23:29:19 +0100 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Wildcard includes in cocoon.xconf References: <41EE2A47.2000708@apache.org> <41EE2F13.50003@apache.org> <41EE9DB2.9070003@apache.org> <41EEA204.6000806@apache.org> <41EEB2B9.2020900@apache.org> In-Reply-To: <41EEB2B9.2020900@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Stefano Mazzocchi wrote: > Carsten Ziegeler wrote: > >> Stefano Mazzocchi wrote: >> >>> what about reusing the code from the Wildcard matchers and have a >>> context://WEB-INF/xconf/*.xconf instead? alternatively, the traverse >>> code is already there... so you just need to do convert the above * >>> into .* and use a regexp package, voila'... >>> >> Yepp, sounds good to me, with the little change to separate the two >> parts, like this: >> >> >> >> WDYT? > > > hmmm, I'd rather have one thing only... so that I can do stuff like > > context://WEB-INF/**/blocks/**/xconf/*.conf > > ;-) Sure, that would be better, but we'll have to import Ant scanners just for this! Separating directory and name pattern avoids this. However, it would seem more natural (well, for those used to Ant) to have it written as as the meaning of the pattern isn't exactly the same as in : in the xconf, it defines a filter on the collection resulting from the traversal of the directory, whereas in the sitemap it's a pattern-matching on a single value (the URL). WDYT? Sylvain (who removed its Incredible suit before going to sleep) -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }