On Tue, Oct 14, 2014 at 2:41 PM, Neil Madsen <li...@cranialinteractive.com> wrote:
> In the various SDK's I have, all of the swcs are in lowercase. > Checking sourceforge for OSMF it does show up there as OSMF.swc and it > looks > like it is case sensitive when attempting to download. > > > I guess if we implement your fix, we need to change the Installer to > rename OSMF.swc into osmf.swc after downloading the file. > > Not sure if anything else will get affected, though. > > Just checking through installer.xml and on line 669 it looks like when > OSMF.swc is written to disk it's in lowercase already. > <param name="dest" value="${basedir}/frameworks/libs/osmf.swc" /> > > It looks like it builds the URL to the swc file using these properties on > Lines 63-66 > <property name="osmf.url.server" value="http://downloads.sourceforge.net" > /> > <property name="osmf.url.folder" > > value="project/osmf.adobe/OSMF%202.0%20Release%20%28final%20source%2C%20ASDo > cs%2C%20pdf%20guides%20and%20release%20notes%29" /> > <property name="osmf.url.file" value="OSMF.swc" /> > <property name="osmf.url.md5" value="6385228692ab982630e47422403f6890" /> > > In downloads.xml there is this > <get > src=" > http://downloads.sourceforge.net/project/osmf.adobe/OSMF%202.0%20Releas > > e%20%28final%20source%2C%20ASDocs%2C%20pdf%20guides%20and%20release%20notes% > 29/OSMF.swc?r=&ts=1381906346&use_mirror=optimate" > dest="${download.dir}/osmf.swc" > verbose="false"/> > > It looks like both places where the URL is 'built' for downloading the swc > uses the uppercase version and appears to be writing it to disk as > "osmf.swc". > > Is flex-config.xml used only by the IDE/SDK to determine where to put and > look for things? If so, we should be able to change line 409 of > flex-config.xml to: > <path-element>libs/osmf.swc</path-element> > But if it's being used for building the URL to download the swc then a > different way will need to be found. > > No, flex-config.xml is not used to build the download url. I guess, based on your analysis, changing flex-config to look for osmf.swc instead of OSMF.swc should work fine. Thanks for digging into this. Regards, Om > Neil > > > -----Original Message----- > From: omup...@gmail.com [mailto:omup...@gmail.com] On Behalf Of OmPrakash > Muppirala > Sent: October-14-14 2:32 PM > To: dev@flex.apache.org; li...@cranialinteractive.com > Subject: Re: FLEX-34452 - OSMF.swc in flex-config.xml fails on linux > because > of lowercase osmf.swc in lib folder > > I believe it was because of the fact that Adobe OSMF team renamed the file > from osmf.swc to OSMF.swc when they released v2.0 [1] > > I guess if we implement your fix, we need to change the Installer to rename > OSMF.swc into osmf.swc after downloading the file. Not sure if anything > else will get affected, though. > > Thanks, > Om > > [1] > > http://sourceforge.net/projects/osmf.adobe/files/OSMF%202.0%20Release%20%28f > inal%20source%2C%20ASDocs%2C%20pdf%20guides%20and%20release%20notes%29/ > > On Tue, Oct 14, 2014 at 1:25 PM, Neil Madsen <li...@cranialinteractive.com > > > wrote: > > > This one looks like it could be an easy fix. It looks like Tom > > Chiverton had made a change to this originally to change to uppercase > > "OSMF.swc". > > In both the "flex-config.xml" and "flex-config-template.xml" files > > line 409 was changed to this: > > <path-element>libs/OSMF.swc</path-element> > > from this > > <path-element>libs/osmf.swc</path-element> > > > > All of the swc files in frameworks/libs are in lowercase. Not sure if > > it's just the reporters machine that is case sensitive or if it's a > > linux default, but the easiest fix would be to revert the change made > > and have "osmf.swc" again. Unless there is some other reason that was > > discussed prior to cause the case change in the first place. > > > > Here's the link to the diff in the repo on github. [1] > > > > Neil > > > > [1] > > > > https://github.com/apache/flex-sdk/commit/65ef09af69be550dbe902baac10f > > 91d044 > > 7085ec#diff-c7db09d8ea7946bb32ed3a77831daab9 > > > >