Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 60012 invoked from network); 27 Sep 2005 10:13:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2005 10:13:27 -0000 Received: (qmail 43760 invoked by uid 500); 27 Sep 2005 10:13:20 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 43699 invoked by uid 500); 27 Sep 2005 10:13:18 -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 43685 invoked by uid 99); 27 Sep 2005 10:13:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2005 03:13:18 -0700 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 [80.242.32.2] (HELO dmzms01.aramiska.net) (80.242.32.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2005 03:13:25 -0700 Received: from ip-213-92-134-135.aramiska-arc.aramiska.net (ip-213-92-134-135.aramiska-arc.aramiska.net [213.92.134.135]) by dmzms01.aramiska.net (Postfix) with ESMTP id 7EE54110044 for ; Tue, 27 Sep 2005 10:12:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-213-92-134-135.aramiska-arc.aramiska.net (Postfix) with ESMTP id E502750DC for ; Tue, 27 Sep 2005 10:12:47 +0000 (UTC) Received: from [192.168.164.210] (ip-192-168-1-3.internal.rhbmesh.aramiska.net [192.168.1.3]) by ip-213-92-134-135.aramiska-arc.aramiska.net (Postfix) with ESMTP id 66630957 for ; Tue, 27 Sep 2005 10:12:45 +0000 (UTC) Message-ID: <43391B16.8070906@apache.org> Date: Tue, 27 Sep 2005 11:12:38 +0100 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: Using XConf extensions References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Aramiska Arc X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Alex Batlin wrote: > Ross, A couple of things about this mail list. First, please do not CC individual developers. We all get the mails via the dev list, CC'ing only serves to doubles the mail to one developers inbox and can easily result in replying to the wrong message, meaning the reply does not go to the list. Secondly, please create a new thread for each new topic, this makes the mailing list much easier to follow, especially in the archives. Now, to your mail.. > I was excited to see the addition of xconf capability into plugins. See > http://svn.apache.org/viewcvs?rev=227190&view=rev. > > I rebuild cocoon with authentication and session blocks, and added the jars > to 'plugin/lib' and the xconf files from the > 'cocoon-2.2.0-dev\build\webapp\WEB-INF\xconf' to 'plugin/conf'. ... > So am bit confused, on two counts: > 1. if xpatch is required, how do I generate this file? > 2. why are we using xpatch, when the current cocoon.xconf uses includes, > can't we do the same here? This was a rather hasty commit of mine that I have not yet fixed, even though David spotted it as soon as I committed. Sorry that it has stung you. My original solution for including config files for plugins was to use the XPatch utility. This sat on my hard drive for some time because I had a few minor issues to iron out before committing. Then somebody needed some functionlaity from my local "branch" that also contained the XConf code. I committed in a hurry, not noticing that I still used the XPatch method. The good news is that I have also enabled the XConf includes functionality. But this has not yet been leveraged for plugins. There are two short term workarounds for you: 1) Use the XPatch facility (see Cocoon docs on XPatch) 2) is to edit the main/webapp/cocoon.xconf and add the include you need, it will work ust fine. If you opt for one be aware that we will be removing this in favour of using the includes at some point before the 0.8 release. The long term solution to the problem is to create a plugin.xconf file that s built each time Forrest is run, much the same as we do with the sitemap mounts for plugins. We would welcome a patch for this, I can help point you in the right direction if you fancy tackling it. Could you please create an issue for this and point to this thread in the archives so I do not forget again. Ross