Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 528EE9FEC for ; Thu, 2 Aug 2012 11:51:04 +0000 (UTC) Received: (qmail 3841 invoked by uid 500); 2 Aug 2012 11:51:03 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 3810 invoked by uid 500); 2 Aug 2012 11:51:03 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 3779 invoked by uid 99); 2 Aug 2012 11:51:02 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 11:51:02 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 888D514052C for ; Thu, 2 Aug 2012 11:51:02 +0000 (UTC) Date: Thu, 2 Aug 2012 11:51:02 +0000 (UTC) From: "Erik de Bruin (JIRA)" To: flex-dev@incubator.apache.org Message-ID: <1459849072.4780.1343908262561.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1280133011.117133.1343672495334.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (FLEX-33149) Create webservice that returns the preferred mirror url given a path to an Apache project release MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33149?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1342= 7250#comment-13427250 ]=20 Erik de Bruin commented on FLEX-33149: -------------------------------------- Excellent idea. I've updated my contribution to include this fallback, whic= h is triggered when the CGI is not found. Note: this solution is now part of my 'mega-patch', attached to FLEX-33106.= I have removed all my other patches. I was getting my patches crossed, and= as the Ghostbusters noted: "Don't cross the patches=E2=80=A6 It would be b= ad=E2=80=A6 Try to imagine all life as you know it stopping instantaneously= and every molecule in your body exploding at the speed of light." ;-) =20 > Create webservice that returns the preferred mirror url given a path to a= n Apache project release > -------------------------------------------------------------------------= ------------------------ > > Key: FLEX-33149 > URL: https://issues.apache.org/jira/browse/FLEX-33149 > Project: Apache Flex > Issue Type: Sub-task > Reporter: OmPrakash Muppirala > Assignee: Bertrand Delacretaz > Priority: Critical > > Erik de Bruin's proposal: > 1. Create 'single-mirror-url.cgi' in the root of the site (i.e. http://in= cubator.apache.org/flex/single-mirror-url.cgi) with these three lines: > =20 > #!/bin/sh > # Wrapper around the standard mirrors.cgi script > exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $* > 2. Create 'single-mirror-url.html' (.mdtext?) next to the .cgi from step = 1., with only this line: > =20 > [preferred] > =20 > 3. Set CGI script permissions to executable: > =20 > % chmod a+x single-mirror-url.cgi > 4. In 'ApacheFlexConfig.xml', change the 'path' attribute of the 'ApacheF= lexSDK' node to "/incubator/flex/4.8.0-incubating/binaries/" and the 'file'= attribute to "apache-flex-sdk-4.8.0-incubating-bin.zip". Note: the applica= tion (when patched) will take care of the addition of the mirror domain to = complete the URL. > 5. Apply patches to InstallApacheFlex source: > InstallApacheFlex.txt for InstallApacheFlex.mxml > ViewResourceConstants.txt for ViewResourceConstants.as > RuntimeLocale.txt for RuntimeLocale.as > HTH and that I understood the rules and regulations for patching, comment= ing etc. correctly (if not, please tell me and I'll behave better next time= ).=20 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira