flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-15) Change build script to download specified version of playerglobal.swc
Date Wed, 15 Feb 2012 21:57:59 GMT

    [ 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"
				<filter token="playerversion" value="${playerglobal.version}"/>
				<filter token="swfversion" value="${playerglobal.swfversion}"/>
				<filter token="locale" value="${locale}"/>
	<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 property="playerglobal.swfversion" value="12">
			<equals arg1="${playerglobal.version}" arg2="10.3" />
		<condition property="playerglobal.swfversion" value="13">
			<equals arg1="${playerglobal.version}" arg2="11.0" />
		<condition property="playerglobal.swfversion" value="14">
			<equals arg1="${playerglobal.version}" arg2="11.1" />

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. -->

    <!-- Specifies the version of the compiled SWF -->

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


View raw message