Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 75132 invoked from network); 9 Sep 2008 22:58:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2008 22:58:10 -0000 Received: (qmail 77138 invoked by uid 500); 9 Sep 2008 22:58:07 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 77085 invoked by uid 500); 9 Sep 2008 22:58:07 -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 77074 invoked by uid 99); 9 Sep 2008 22:58:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 15:58:07 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [81.169.146.182] (HELO mo-p05-ob.rzone.de) (81.169.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 22:57:08 +0000 X-RZG-CLASS-ID: mo05 X-RZG-AUTH: :YSxENQjhO8Rlyg/MJGdm2WhEJa12 Received: from [192.168.1.33] ([80.30.75.204]) by post.webmailer.de (mrclete mo27) (RZmta 17.1) with ESMTP id k01c73k89MaO7x for ; Wed, 10 Sep 2008 00:53:51 +0200 (MEST) (envelope-from: ) Subject: Re: Resolving relative locations in the locationmap From: Thorsten Scherler To: dev@forrest.apache.org In-Reply-To: <48C6F7FC.7090704@apache.org> References: <48C6F7FC.7090704@apache.org> Content-Type: text/plain Date: Wed, 10 Sep 2008 00:53:22 +0200 Message-Id: <1221000803.17371.25.camel@cartman> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2008-09-09 at 23:26 +0100, Ross Gardler wrote: > I've hit a problem with my work on multiple site integration in the > whiteboard. I thought it was all going too well ;-) > > I've got a site that is made up of 1 master site and 3 sub sites. The > process for doing this is documented in the sample in whiteboard. The > primary trick is a locationmap that "mounts" the sub sites. > > In my worksite I've done this with relative paths and it worked great. > That is, subsiteA is "mounted" from "../../../subsiteA". > > Unfortunately someone else has just tried to build this on their machine > and it doesn't work. > > After some digging I discovered that the resolved location from the > sitemap is relative to the Forrest install not the site being built. > > i.e. instead of > "/mysite/src/documentation/content/../../../../subsiteA..." we get > "/forrest/src/documentation/content/../../../../subsiteA..." > > On my machine this works because Forrest is at the same directory depth > as my master site. On my colleagues machine this is not the case and so > it fails. > > So, my question is. How can I get the location of the locationmap file > itself for use in these relative matches? Have you tried {properties:home}../../../subsiteA ? IMO should work as I understand your mail. salu2 > Ross -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions