Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 87388 invoked from network); 16 Mar 2005 08:35:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Mar 2005 08:35:08 -0000 Received: (qmail 72103 invoked by uid 500); 16 Mar 2005 08:34:55 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 72032 invoked by uid 500); 16 Mar 2005 08:34:55 -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 Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 71981 invoked by uid 99); 16 Mar 2005 08:34:54 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ns3.wkwyw.net (HELO ns3.wkwyw.net) (217.199.181.91) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 16 Mar 2005 00:34:54 -0800 Received: (qmail 19786 invoked from network); 16 Mar 2005 08:34:52 -0000 Received: from 82-69-78-226.dsl.in-addr.zen.co.uk (HELO ?192.168.0.4?) (82.69.78.226) by ns3.wkwyw.net with SMTP; 16 Mar 2005 08:34:52 -0000 Message-ID: <4237EFA8.7050001@apache.org> Date: Wed, 16 Mar 2005 08:34:48 +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: Leather and global variables References: <20050314121253.56212.qmail@minotaur.apache.org> <1110837095.5988.81.camel@localhost.localdomain> <4236B408.5020302@apache.org> <1110926560.6500.15.camel@localhost.localdomain> In-Reply-To: <1110926560.6500.15.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thorsten Scherler wrote: > On Tue, 2005-03-15 at 10:08 +0000, Ross Gardler wrote: >=20 >>Thorsten Scherler wrote: >> >>>On Mon, 2005-03-14 at 12:12 +0000, thorsten@apache.org wrote: >>> >>>I need some input on the following: >>> >>> >>> >>>>+ >>> >>> >>>Where do we define this global variables?=20 >> >>Do you mean where do we define *new* global variables that can be set i= n=20 >>forrest.properties? If so the answer is cocoon.xconf. >> >=20 >=20 > hmm, ok, I tried: > Index: main/webapp/WEB-INF/xconf/forrest-core.xconf > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- main/webapp/WEB-INF/xconf/forrest-core.xconf (revision > 157530) > +++ main/webapp/WEB-INF/xconf/forrest-core.xconf (working copy) > @@ -139,6 +139,7 @@ > @project.home@/@project.content-dir@/ > @project.home@/@project.raw-content-dir@/ >=20 > @project.home@/@project.xdocs-dir@/ > + @project.conf-dir@ >=20 > @project.home@/@project.translations-dir@ > @project.home@/@project.stylesheets-dir@/ >=20 > @project.home@/@project.images-dir@/ >=20 > ...but I could not find any target that would do e.g. > @project.home@ >=20 > Can you please give me another hint how to use {project:conf-dir} withi= n > my output.xmap I'm guessing you mean something like: If so, my original reply was spot on: Do you mean where do we define=20 *new* global variables that can be set in forrest.properties? You now need to set the value you want in forrest.properties: project.conf-dir=3D${project.content-dir}/conf Everything else happens automatically. If this isn't what you are trying to do then it really would help my=20 fuzzy early morning brain if you provided a code snippet of what you=20 want to do - I wouldn't have to think before my morning brew ;-) (my=20 head hurts this morning - sorry) Ross