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 DEE339E37 for ; Thu, 26 Jul 2012 02:53:32 +0000 (UTC) Received: (qmail 3218 invoked by uid 500); 26 Jul 2012 02:53:32 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 3175 invoked by uid 500); 26 Jul 2012 02:53:32 -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 3151 invoked by uid 99); 26 Jul 2012 02:53:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 02:53:31 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of omuppi1@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-lpp01m010-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 02:53:25 +0000 Received: by lags15 with SMTP id s15so925878lag.6 for ; Wed, 25 Jul 2012 19:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=OoGWg6nTqjWR/6watJJxEJQqQERa+jsS4ajDir6nP5g=; b=jb9YvvDWec4VA4h/wP0+z7D7uotjV21cJrCW90nZNsfCogFW5KLraPW7VQfunOlc7W 8NA5ebiUj7TVWjm4SOEHAUpZVrehdM5wxIwwqWIJyVuZRB4YrDMu8I0FRbQdwacy45tu QCTzTzs7RiBSr68mB77ZZMoNmXy2Fd+hAIZfKFxsq55F9UOUX4ngCIS2R3HvUCI4XBEF HwA7xx8OhtGbgPHhNq5pXTCcloMMuzgE+TqIi7W/xH/MspgziI+6zU+gzCTbBhbRBZi9 l9mDNckV/f8jqWjtRVwSmeGPZc0cCEC+N2JTM4l+I1CQkXChNkhCqfPzt5TYQ+tIptkS Ou3Q== MIME-Version: 1.0 Received: by 10.112.41.130 with SMTP id f2mr12673308lbl.5.1343271184398; Wed, 25 Jul 2012 19:53:04 -0700 (PDT) Sender: omuppi1@gmail.com Received: by 10.112.82.73 with HTTP; Wed, 25 Jul 2012 19:53:04 -0700 (PDT) Received: by 10.112.82.73 with HTTP; Wed, 25 Jul 2012 19:53:04 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Jul 2012 19:53:04 -0700 X-Google-Sender-Auth: AeJC7AVBuWFly9E6SyZTJU1SKOA Message-ID: Subject: Re: updating ApacheFlexSDK URL in Om's installer From: Om To: flex-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=485b390f79aac878ca04c5b2b11b --485b390f79aac878ca04c5b2b11b Content-Type: text/plain; charset=ISO-8859-1 Erik, This is the closest we have come in terms of a solution to this problem :-) Lets try to figure out a way to implement and test this. If you don't mind, can you please post this approach on infrastructure-dev@apache.org and see if there are any objections? Nick, do you think you can implement this on the server? The steps seem to be relatively straightforward. If needed, I can try to get access and try it out. Thanks, Om On Jul 25, 2012 3:37 PM, "Erik de Bruin" wrote: > Hi, > > I think I have the solution figured out, but I have no way of testing it. > > I'm posting my findings ("steps to reproduce" ;-)) here and attaching > my patches to FLEX-33106, for lack of a better 'location'. Here goes: > > 1. Create 'single-mirror-url.cgi' in the root of the site (i.e. > http://incubator.apache.org/flex/single-mirror-url.cgi) with these > three lines: > > #!/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: > > [preferred] > > 3. Set CGI script permissions to executable > > % chmod a+x single-mirror-url.cgi > > 4. In 'ApacheFlexConfig.xml', change the 'path' attribute of the > 'ApacheFlexSDK' 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 application > (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 etc. > correctly (if not, please tell me and I'll behave better next time), > > Regards, > > EdB > > > > On Wed, Jul 25, 2012 at 7:36 PM, Om wrote: > > On Wed, Jul 25, 2012 at 10:02 AM, Erik de Bruin > wrote: > > > >> Hi, > >> > >> I might be able to help with this. Can you host PHP (which is the > >> language I'm most familiar with)? > >> > >> I can call the 'closer-cgi' (whatever that is, I'd have to read up a > >> bit on the intended functionality) from PHP and return the config XML. > >> > >> I can create a patch for the app as well, allowing it to handle the > >> call to the web service instead of reading the config XML from local > >> system. > >> > >> EdB > >> > > > > Erik, > > > > That would be awesome! Here is some documentation regarding this: > > http://www.apache.org/dev/mirrors.html > > http://www.apache.org/dev/release-download-pages.html > > > > Here is config file that the installer app loads: > > > http://people.apache.org/~bigosmallm/installapacheflex/ApacheFlexConfig.xml > > > > In this xml, the element: > file="apache-flex-sdk-4.8.0-incubating-bin.zip"/> > > > > needs to updated dynamically with the 'preferred mirror' url from the > > closer.cgi script. > > > > I hope this info is sufficient for you to start. You might want to jump > on > > to infrastructure-dev@apache.org (public list) if you need expert > advice. > > > > Thanks for volunteering :-) > > > > Om > > > > -- > Ix Multimedia Software > > Jan Luykenstraat 27 > 3521 VB Utrecht > > T. 06-51952295 > I. www.ixsoftware.nl > > > > P.S. I would like everybody to know that as of this morning I broke my > personal record for days lived. > --485b390f79aac878ca04c5b2b11b--