Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@locus.apache.org Received: (qmail 39111 invoked from network); 29 Aug 2008 21:46:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2008 21:46:24 -0000 Received: (qmail 6092 invoked by uid 500); 29 Aug 2008 21:46:22 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 6073 invoked by uid 500); 29 Aug 2008 21:46:22 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 6062 invoked by uid 99); 29 Aug 2008 21:46:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Aug 2008 14:46:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of murray07@altheim.com designates 69.90.72.72 as permitted sender) Received: from [69.90.72.72] (HELO athens.clusterspan.net) (69.90.72.72) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Aug 2008 21:45:23 +0000 Received: (qmail 21645 invoked from network); 29 Aug 2008 17:44:51 -0400 Received: from ip-118-90-26-91.xdsl.xnet.co.nz (HELO ?192.168.1.66?) (118.90.26.91) by athens.clusterspan.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 29 Aug 2008 17:44:51 -0400 Message-ID: <48B86DD0.7090002@altheim.com> Date: Sat, 30 Aug 2008 09:44:48 +1200 From: Murray Altheim User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: jspwiki-user@incubator.apache.org Subject: Re: Viewer for generated pages - Lucene refresh References: <19218006.post@talk.nabble.com> In-Reply-To: <19218006.post@talk.nabble.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org weberjn wrote: > We'd like to export some information from UML models into Wiki pages and use > JSPWiki as read-only viewer for it. The result should be similar to Javadoc > (but it is not about Java). > It seems to be easier to generate wiki pages than to generate static HTML > pages, does it? > > I see two problems here: > > o How does JSPWiki know that there are new or changed pages in the > file-system and especially, how do you make Lucene see the changes? Is there > an API (e.g. a servlet) that you can call to make JSPWiki reload its page > cache? Juergen, I often generate wikitext pages from programs for viewing via JSPWiki. Works like a charm. For reindexing Lucene, you can either use the ReindexPlugin: http://purl.org/ceryle/wiki/Wiki.jsp?page=ReindexPlugin or check out what it does and duplicate that. If you don't want users to be able to force a reindex you could add an authorisation code check as found in HelloWorld plugin: http://purl.org/ceryle/wiki/Wiki.jsp?page=HelloWorldPlugin It's pretty simple really. Murray ........................................................................... Murray Altheim === = = http://www.altheim.com/murray/ = = === SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = = Boundless wind and moon - the eye within eyes, Inexhaustible heaven and earth - the light beyond light, The willow dark, the flower bright - ten thousand houses, Knock at any door - there's one who will respond. -- The Blue Cliff Record