Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-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 A53F6EFB1 for ; Sun, 6 Jan 2013 16:49:31 +0000 (UTC) Received: (qmail 63858 invoked by uid 500); 6 Jan 2013 16:49:31 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 63770 invoked by uid 500); 6 Jan 2013 16:49:31 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 63762 invoked by uid 99); 6 Jan 2013 16:49:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jan 2013 16:49:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of niall.pemberton@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-wg0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jan 2013 16:49:24 +0000 Received: by mail-wg0-f44.google.com with SMTP id dr12so8665517wgb.11 for ; Sun, 06 Jan 2013 08:49:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ABOcbFcHCct7d4aWTsusaobI/vuipPyvNLcbHgxena0=; b=aspqH4XzUgqTDCCrqxzyLdfRdddgecSqH88nxaOI2y/LgV1hkukhVz/molNcrFF/2N rc1KGWHogZdE/X+WYjep3yzr5B8Gr7wGEMh6Q1Lcy69Rsve65xyusNf58C31oGFjr6zZ 7RFjKADoJTUCXPPNnVIvaRouOTe/ZRsinrLDxz74rz4/fyiJxG/iA588fOBD6WQqnJVB ysOavKdVd3+mLMA26UxcwpIwGQ/ETpaokZkhTFqurikuFV68933n3zLNX4G4tl/Pf+gI PpcHdIwyoIkd2+P8rZkY508iASY/T+zhvfQmppab/4ImrLnEyAR5ULYKOB/VdRIcqFXG zQ4Q== MIME-Version: 1.0 Received: by 10.194.76.7 with SMTP id g7mr13160289wjw.50.1357490944228; Sun, 06 Jan 2013 08:49:04 -0800 (PST) Received: by 10.180.4.72 with HTTP; Sun, 6 Jan 2013 08:49:04 -0800 (PST) In-Reply-To: References: <20121223232447.GA73289@minotaur.apache.org> <20121224123716.GG9479@dusk.harfang.homelinux.org> <50D8909D.4010004@gmail.com> <20121224211336.GA24843@dusk.harfang.homelinux.org> <50DB42D3.9090104@gmail.com> Date: Sun, 6 Jan 2013 16:49:04 +0000 Message-ID: Subject: Re: [Math] Missing links on "download page" From: Niall Pemberton To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Jan 6, 2013 at 4:21 PM, Niall Pemberton wrote: > On Wed, Dec 26, 2012 at 6:32 PM, Phil Steitz wrote: >> On 12/24/12 1:13 PM, Gilles Sadowski wrote: >>> On Mon, Dec 24, 2012 at 09:27:57AM -0800, Phil Steitz wrote: >>>> On 12/24/12 4:37 AM, Gilles Sadowski wrote: >>>>> Hi. >>>>> >>>>>> [...] >>>>>> >>>>>> Commons Math can be downloaded from the following page: >>>>>> http://commons.apache.org/math/download_math.cgi >>>>> I missed that the "mvn commons:download-page" had generated a new >>>>> template page: >>>>> src/site/xdoc/download_math3.xml >>>>> instead of modifying >>>>> src/site/xdoc/download_math.xml >>>>> >>>>> Questions: >>>>> 1. Is the creation of a new template page expected? >>>>> 2. In the affirmative, is it automatically taken into account by the "site" >>>>> generation? I.e. which of the old and new template will eventually be >>>>> used to generate the HTML page? >>>>> 3. Should the old template be deleted from SVN? >>>>> 4. Given that I did not notice the creation of the new template, it was not >>>>> included in the tag, and the download page on the site misses the links >>>>> to the new release files. How to fix that? >>>> I think I understand what is going on and how to "fix" it, but am >>>> not 100% sure. >>>> >>>> I think the root cause of the problem is r1392022 of the [math] pom, >>>> where we changed the commons.component.id property to get correct >>>> osgi bundles created. > > Yes, but I think it would have been better to leave the > commons.component.id property unchanged and add a > commons.osgi.symbolicName property to commons math's pom to get what > you wanted for the osgi bundle. I have attached a patch to MATH-876 which does this - so should resolve all issues https://issues.apache.org/jira/browse/MATH-876 > Niall > >>>> This causes the download plugin to generate >>>> the second template above. The site plugin does create an html >>>> page, so there are two. What I don't get is why only one of them >>>> ends up on p.a.o (the "old" one). In any case, the "new" one has >>>> the wrong name, so this needs to be fixed. >>>> >>>> I don't know enough about the download plugin to figure out how to >>>> really fix this. Here is a temporary hack that should fix things. >>>> >>>> 0) Change commons.component.id back to "math" locally in the pom. >>>> 1) Change commons.release.version back to "3.1" >>>> 2) run commons:download >>>> 3) check in the modified template. >>>> 4) generate the site locally >>>> 5) scp just the download page (download_math.html) to >>>> p.a.o/www/commons.apache.org/math >>>> >>>> It would probably also work to undo the pom changes after step 3) >>>> and then do a full site build and deploy. >>> Thanks but, hack for hack, I took the more direct route to directly modify >>> the HTML page (which is equivalent to your step 5, IIUC). I hope there >>> aren't any ill side effects... >> >> That was actually my first thought ;) >>> >>> The rest should be really fixed, i.e. keeping the correct component id and >>> having the plugin generate/modify the correct file. >>> >>> Perhaps, we should open a JIRA report in order not to forget. >> >> Agreed, but I am not sure if it should be against [math], >> commons-parent or the download plugin. >> >> It looks like the download plugin and the osgi plugin both use the >> property commons.component.id. The value of this property ends up >> embedded in the template name - download_xxx.html - that the >> download plugin generates. This name *must* match download_xxx.cgi >> and the link in site.xml for the download pages to work. I guess >> one way we can fix this is to rename download_math.cgi (and fix the >> links that point to it elsewhere); but that seems wrong to me. >> Maybe the best approach is to define commons.project.id and have the >> download plugin use that property instead. What do others think? >> >> One other question I have is where exactly does download_math.cgi >> come from? I don't see it generated locally or in svn anywhere. >> >> Phil >>> >>> >>> Regards (and Merry Christmas!), >>> Gilles >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >>> For additional commands, e-mail: dev-help@commons.apache.org >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org