Return-Path: X-Original-To: apmail-forrest-dev-archive@www.apache.org Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4EE3811583 for ; Wed, 17 Sep 2014 08:30:04 +0000 (UTC) Received: (qmail 82168 invoked by uid 500); 17 Sep 2014 08:30:04 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 82112 invoked by uid 500); 17 Sep 2014 08:30:04 -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 82101 invoked by uid 99); 17 Sep 2014 08:30:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2014 08:30:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [66.111.4.25] (HELO out1-smtp.messagingengine.com) (66.111.4.25) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2014 08:29:37 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by gateway2.nyi.internal (Postfix) with ESMTP id 1EC4E2094F for ; Wed, 17 Sep 2014 04:29:34 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 17 Sep 2014 04:29:34 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:subject:message-id :references:mime-version:content-type:in-reply-to; s=smtpout; bh=huczP+ugHWejBNmaSS1MgwfMWiY=; b=fVoL9L7qHatu7lAR4/uocR01j8Dl z+mp50+FBGUDpU0B9KcQ5YEs9yrZGaBqWybJpB+vUVmgjUcxYoNF5zamufG80Qp5 CAS9LE+lDn1/7UQlx4gt//PSusC+pPUkto+FPFI1QlNnu1lF8+6P47zEztgmRql2 X85AziGmojEuAak= X-Sasl-enc: 99VXpmAFflizRLhM+t82BP64i95jAJS6zxT+ffbNqH9w 1410942572 Received: from localhost (unknown [123.51.55.248]) by mail.messagingengine.com (Postfix) with ESMTPA id EB5D3C00916 for ; Wed, 17 Sep 2014 04:29:32 -0400 (EDT) Date: Wed, 17 Sep 2014 18:29:30 +1000 From: David Crossley To: dev@forrest.apache.org Subject: Re: Building my website with forrest 0.9 Message-ID: <20140917082930.GA42886@igmm.local> References: <20140911005429.GA44638@igmm.local> <20140911145349.GD44638@igmm.local> <20140912084500.GB62212@igmm.local> <20140914085448.GB76507@igmm.local> <20140915091650.GA91981@igmm.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Sep 16, 2014 at 10:42:11AM +0200, Vicent Mas wrote: > On Mon, Sep 15, 2014 at 11:16 AM, David Crossley wrote: > > On Mon, Sep 15, 2014 at 10:21:41AM +0200, Vicent Mas wrote: > >> On Sun, Sep 14, 2014 at 10:54 AM, David Crossley wrote: > >> > On Fri, Sep 12, 2014 at 11:03:58AM +0200, Vicent Mas wrote: > >> >> On Fri, Sep 12, 2014 at 10:45 AM, David Crossley wrote: > >> >> > On Fri, Sep 12, 2014 at 10:28:34AM +0200, Vicent Mas wrote: > >> >> >> On Thu, Sep 11, 2014 at 4:53 PM, David Crossley wrote: > >> >> >> > On Thu, Sep 11, 2014 at 11:24:16AM +0200, Vicent Mas wrote: > >> >> >> >> On Thu, Sep 11, 2014 at 2:54 AM, David Crossley wrote: > >> >> >> >> > > >> >> >> >> > If that works, then try configuring that sample site > >> >> >> >> > to use Dispatcher. See its forrest.properties configuration file. > >> >> >> >> > Then do the 'forrest' command again. > >> >> >> >> > >> >> >> >> That fails. > >> >> >> >> > >> >> >> >> With the 0.10 version my website is built both with the skinner method > >> >> >> >> and with the dispatcher plugin so I think my best option is to use the > >> >> >> >> 0.10 version and try to find out why the customizations are ignored. > >> >> >> >> > >> >> >> >> Thanks again for your help. > >> >> >> > > >> >> >> > Ah, good that it works with 0.10-dev > >> >> >> > > >> >> >> > So that confirms https://issues.apache.org/jira/browse/FOR-1188 > >> >> >> > > >> >> >> > Would you please try with the projectInfo plugin. > >> >> >> > It has been difficult to get someone on Windows to confirm > >> >> >> > that it still has that problem. > >> >> >> > > >> >> >> > cd $FORREST_HOME/plugins/org.apache.forrest.plugin.input.projectInfo/ > >> >> >> > Enable it for Dispatcher in forrest.properties, i.e. > >> >> >> > project.required.plugins=org.apache.forrest.plugin.input.projectInfo,org.apache.forrest.plugin.internal.dispatcher > >> >> >> > Then do: > >> >> >> > forrest site > >> >> >> > >> >> >> It fails for me. The content of the broken-links.xml file is: > >> >> >> > >> >> >> > >> >> >> releaseNotes_0.2.html > >> >> > > >> >> > [snipped some other similar ones for brevity] > >> >> > > >> >> >> > >> >> >> > >> >> >> Sorry for not doing this yesterday. I just forgot about it. > >> >> > > >> >> > Thanks. So it seems like the same problem. > >> > > >> > I made the change to the "projectInfo" plugin today to hopefully > >> > apply the workaround described in FOR-1108 and FOR-1188. > >> > > >> > Would you please do 'svn up' and try that plugin again, > >> > enabled for the Dispatcher. > >> > >> Hi, > >> it fails again. But the content of broken-links.xml is much shorter > >> now (only 2 errors):: > >> > >> index.html > >> /index.html > >> > > > > Ah. This plugin is one of the few that utilises a "map:mount" > > to include a sub-sitemap (Dispatcher too). > > > > I now made another fix to this plugin to stop mounting > > and just add the pipelines from svnHelp.xmap into input.xmap file. > > > > Before doing 'svn up' would you please try this projectInfo > > docs again, but not enabled for the Dispatcher, i.e. just > > with its default skins. I want to see if the problem was > > only with Dispatcher-enabled sites. > > Doing that the broken-links.xml seems to be the same: > > > index.html > /index.html > > > After doing svn update the built fails with the following errors: > > > log.svn-revision.xml > log.svn.html > log.svn-sh.xml > Thanks for following through. I think that we might now have it. The input.xmap was using staight relative pathnames to those stylesheets. This worked fine on UNIX, but it seems not on Windows. I changed it in r1625483 to use the locationmap. > >> > Also try again the Dispatcher plugin's docs. > >> > It uses the projectInfo plugin and so hopefully it > >> > now works for you too. > >> > >> The projectInfo plugin fails so the dispatcher plugin fails too. > > > > Yep. > > After doing the svn update the dispatcher plugin is built properly and > I can see the docs on my web browser. Great. That is because although it uses the projectInfo plugin, it does not use those resources that were missing above. > >> > Each plugin's own docs (do 'forrest run' there) is supposed > >> > to demonstrate its own features. So you might be able to follow > >> > its setup and apply to your own situation. Now hopefully you can get further with that. -David > >> > By the way, this FAQ explains how to run the plugins docs > >> > server on the default 8888 port and your project on another port: > >> > http://forrest.apache.org/docs_0_100/faq.html#run_port > >> > >> I didn't know it. Thanks for the info > >> > >> >> > Getting back to your own website. > >> >> > Do you use any other plugins, or just Dispatcher? > >> >> > >> >> I use the PDF plugin too, if the site is not built. It seems that the > >> >> dispatcher requires the PDF plugin. > >> > >> The above lines should read: > >> > >> I use the PDF plugin too, if *not* the site is not built. It seems that the > >> dispatcher requires the PDF plugin. > > > > Yes i figured out what you meant, but i did not understand why. > > > > I see now. It is because the default settings for the Dispatcher > > do add a link to *.pdf for each page. > > > > -David > > So things are better now: > > - the projectInfo plugin doesn't work > - the dispatcher info is still outdated but the dispatcher plugin > seems to work fine now > > Vicent > -- > Share what you know, learn what you don't. >