Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 28447 invoked from network); 31 Mar 2004 07:54:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 31 Mar 2004 07:54:40 -0000 Received: (qmail 90966 invoked by uid 500); 31 Mar 2004 07:53:45 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 90916 invoked by uid 500); 31 Mar 2004 07:53:45 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 90864 invoked from network); 31 Mar 2004 07:53:45 -0000 Received: from unknown (HELO www.mieth-xml.de) (213.133.100.24) by daedalus.apache.org with SMTP; 31 Mar 2004 07:53:45 -0000 Received: from duron.simon.home (pD9E73B16.dip.t-dialin.net [217.231.59.22]) by www.mieth-xml.de (Postfix) with ESMTP id BD7134AC00B for ; Wed, 31 Mar 2004 10:02:41 +0200 (CEST) Date: Wed, 31 Mar 2004 09:53:58 +0200 From: Simon Mieth To: users@cocoon.apache.org Subject: Re: Cocoon 2.1.2 - How to tell if Offline site generation fails Message-Id: <20040331095358.3836f967@duron.simon.home> In-Reply-To: References: X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Tue, 30 Mar 2004 14:24:48 +0100 "L.Austin" wrote: > Hi, > > We are currently using Cocoon 2.1.2 to generate a site > which is in turn is copied to > our live server. > > Current Configuration: > Server jakarta-tomcat-5.0.12 with Cocoon 2.1.2 > Linux Server > > > Everyday a script is fired off calling our cocoon build. > Then when the build has > finished the files are copied to our Live server. At > present we are manually copying > these files... but we will be implementing a script to do > this automatically. > > What we need to do is somehow set a flag if the Cocoon > build has failed and did not > follow all links from the initial page. Which in turn > would stop files being automatically > copied to the Live server. > > Is there a way Cocoon can do this? > > I understand that Cocoon creates the page with an error > message within if a link is unreachable, > which in turn is logged within the log files > > > Thanks, Lee > Hi, how do you generate the site? If you use the CLI, you can use the "broken-links" option. This will generate a report-file, where the broken-links are reported as text(current Cocoon-version as XML too). The file will generated in every case, so you should test if its empty or not. If you can use the ant-task (like Joerg wrote), you can do it all. Make a target for generating and a target for publishing(with a check if there was no broken link). But the ANT-task and more reporting options are introduced later to Cocoon (up 2.1.3 ??) Best Regards Simon --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org