incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik de Bruin <e...@ixsoftware.nl>
Subject Re: updating ApacheFlexSDK URL in Om's installer
Date Wed, 25 Jul 2012 22:36:43 GMT
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 <bigosmallm@gmail.com> wrote:
> On Wed, Jul 25, 2012 at 10:02 AM, Erik de Bruin <erik@ixsoftware.nl> 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 name="ApacheFlexSDK" path="
> http://people.apache.org/~cframpton/ApacheFlexRC/release_candidate_3/binaries/"
> 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.

Mime
View raw message