[ https://issues.apache.org/jira/browse/FLEX-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208828#comment-13208828 ]
Justin Mclean commented on FLEX-15: ----------------------------------- And here's one way to generate flex-config.xml so that it contains the correct flash player and swf versions number. <target name="flexconfig" depends="playerglobal-setswfversion" description="Copy the flex config template to flex-config.xml and inject version numbers"> <copy file="${basedir}/flex-config.template.xml" tofile="${basedir}/flex-config.xml" overwrite="true"> <filterset> <filter token="playerversion" value="${playerglobal.version}"/> <filter token="swfversion" value="${playerglobal.swfversion}"/> <filter token="locale" value="${locale}"/> </filterset> </copy> </target> <target name="playerglobal-setswfversion" description="Set the swfversion to insert into the flex config file"> <condition property="playerglobal.swfversion" value="11"> <equals arg1="${playerglobal.version}" arg2="10.2" /> </condition> <condition property="playerglobal.swfversion" value="12"> <equals arg1="${playerglobal.version}" arg2="10.3" /> </condition> <condition property="playerglobal.swfversion" value="13"> <equals arg1="${playerglobal.version}" arg2="11.0" /> </condition> <condition property="playerglobal.swfversion" value="14"> <equals arg1="${playerglobal.version}" arg2="11.1" /> </condition> </target> It assumes that the first set ion of flex-confg.template.xml is like so: <!-- Specifies the minimum player version that will run the compiled SWF. --> <target-player>@playerversion@</target-player> <!-- Specifies the version of the compiled SWF --> <swf-version>@swfversion@</swf-version> Again once the SDK is in SVN trunk I'll provide a patch. > Change build script to download specified version of playerglobal.swc > --------------------------------------------------------------------- > > Key: FLEX-15 > URL: https://issues.apache.org/jira/browse/FLEX-15 > Project: Apache Flex > Issue Type: Sub-task > Reporter: Justin Mclean > Assignee: Bertrand Delacretaz > Priority: Minor > > Current build_framework.xml script hard codes the playerglobal.swc version > that it downloads. It should download the correct version based on player > version property in the build file. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira