incubator-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 04:07:59 GMT

    [ https://issues.apache.org/jira/browse/FLEX-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208213#comment-13208213
] 

Justin Mclean commented on FLEX-15:
-----------------------------------

After some further investigation I think is the way forward given that we can't access all
of the player global swc's at a public URL. I'll provide a full patch once the build file
has been checked in.

I've tested this with the current whiteboard build script.


    <!-- playerglobal.swc -->
    <!-- Because this requires a network connection it copies playglobal.swc only if it
doesn't already exist. -->	
	<target name="playerglobal-download" depends="playerglobal-check,playerglobal-settarget,playerglobal.failure,playerglobal10.3-download,playerglobal11.0-download,playerglobal11.1-download"
description="Copies playerglobal.swc from the Adobe website">
    </target>
	
	<target name="playerglobal-settarget" unless="playerglobal.swc.present">
		<condition property="target10.2">
			<equals arg1="${playerglobal.version}" arg2="10.2" />
		</condition>
		<condition property="target10.3">
			<equals arg1="${playerglobal.version}" arg2="10.3" />
		</condition>
		<condition property="target11.0">
			<equals arg1="${playerglobal.version}" arg2="11.0" />
		</condition>
		<condition property="target11.1">
			<equals arg1="${playerglobal.version}" arg2="11.1" />
		</condition>
	 </target>
	
	<target name="playerglobal.failure" if="target10.2">
		<fail message="There's no public download link for the Flash Player 10.2 playerglobal.swc.
You will need to find your own copy." />
	</target>
		
    <target name="playerglobal10.3-download" if="target10.3">
    	<mkdir dir="${basedir}/libs/player/${playerglobal.version}"/>
        <get src="http://fpdownload.macromedia.com/pub/flashplayer/updaters/10/playerglobal10_3.swc"

            dest="${basedir}/libs/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target>
	
    <target name="playerglobal11.0-download" if="target11.0">
    	<mkdir dir="${basedir}/libs/player/${playerglobal.version}"/>
        <get src="http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_0.swc"

            dest="${basedir}/libs/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target> 
	
    <target name="playerglobal11.1-download" if="target11.1">
    	<mkdir dir="${basedir}/libs/player/${playerglobal.version}"/>
        <get src="http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/playerglobal11_0.swc"

            dest="${basedir}/libs/player/${playerglobal.version}/playerglobal.swc" 
            verbose="false"/>
    </target> 

                
> 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

        

Mime
View raw message