From general-return-1697-apmail-logging-general-archive=logging.apache.org@logging.apache.org Thu Nov 24 11:32:03 2011 Return-Path: X-Original-To: apmail-logging-general-archive@www.apache.org Delivered-To: apmail-logging-general-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 072FB9E5C for ; Thu, 24 Nov 2011 11:32:03 +0000 (UTC) Received: (qmail 86322 invoked by uid 500); 24 Nov 2011 11:32:02 -0000 Delivered-To: apmail-logging-general-archive@logging.apache.org Received: (qmail 86250 invoked by uid 500); 24 Nov 2011 11:32:02 -0000 Mailing-List: contact general-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Logging General" List-Id: Delivered-To: mailing list general@logging.apache.org Received: (qmail 86242 invoked by uid 99); 24 Nov 2011 11:32:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2011 11:32:01 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Nov 2011 11:31:55 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 447B428985D1 for ; Thu, 24 Nov 2011 12:31:34 +0100 (CET) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PcbhLh5tjHdd for ; Thu, 24 Nov 2011 12:31:34 +0100 (CET) Received: by samaflost.de (Postfix, from userid 1000) id 0B91A28985D2; Thu, 24 Nov 2011 12:31:34 +0100 (CET) From: Stefan Bodewig To: "Logging General" Subject: Re: Download Pages References: <87ehztugqt.fsf@v35516.1blu.de> Date: Thu, 24 Nov 2011 12:31:34 +0100 In-Reply-To: (Curt Arnold's message of "Wed, 7 Sep 2011 00:29:23 -0500") Message-ID: <87fwhd92p5.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On 2011-09-07, Curt Arnold wrote: > On Sep 6, 2011, at 11:19 PM, Stefan Bodewig wrote: >> The log4net download page currently doesn't use the mirrors at all which >> I'm going to change. All the other LS download pages I've looked at use >> links to closer.cgi rather than a templated cgi like the commons >> components (for example [1]) or Ant or many other projects do. Is there >> any reason we are doing it this way? > Very likely it was easiest at the time. > The current approach with closer.cgi does not work well with Safari > which ignores the site screaming that the resource is text/html and > decides that since the URL ends with .gz it must be downloaded and not > displayed. I filed that as a WebKit bug many years ago and while it is > definitely broken with regard to the standard, there it is not going > to change. > I assume that whatever you come up with be an improvement. Get it > working with log4net and we can port it to the other products. It took longer than I had expected (basically because other things were higher up on the TODO list) but finally I have something to show To adapt this for other pieces of LS you need to create a copy of the CGI script and reference it for the download link. You also need an html page by the same name as the CGI. Currently I had to manually make the CGI executable on minotaur as mvn site:site will strip that. I don't know enough about maven to know how to integrate setting the executable bit during site generation. Commons has a plugin to automatically generate an xdoc file for the donwload page based on some template and the POM but this was too specific to Commons to think about porting it. I took the easy route of creating the page manually. Stefan >> [1] http://commons.apache.org/compress/download_compress.cgi