flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject svn commit: r1364655 - /incubator/flex/trunk/frameworks/build.xml
Date Mon, 23 Jul 2012 14:42:04 GMT
Author: jmclean
Date: Mon Jul 23 14:42:04 2012
New Revision: 1364655

URL: http://svn.apache.org/viewvc?rev=1364655&view=rev
Log:
added targets to create flex config file and set swf version based on player global version

Modified:
    incubator/flex/trunk/frameworks/build.xml

Modified: incubator/flex/trunk/frameworks/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/build.xml?rev=1364655&r1=1364654&r2=1364655&view=diff
==============================================================================
--- incubator/flex/trunk/frameworks/build.xml (original)
+++ incubator/flex/trunk/frameworks/build.xml Mon Jul 23 14:42:04 2012
@@ -82,7 +82,7 @@
        Should consider updating the OSMF and TLF versions in use.
     -->
     
-    <target name="compile" description="Builds all SWCs but not their resource bundles">
+    <target name="compile" description="Builds all SWCs but not their resource bundles"
depends="flex-config">
         <antcall target="framework"/>
         <antcall target="mx"/>
         <antcall target="rpc"/>
@@ -104,6 +104,40 @@
         
         <antcall target="compile-automation"/>
     </target>
+	
+	<target name="flex-config" 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>
+		<condition property="playerglobal.swfversion" value="15">
+			<equals arg1="${playerglobal.version}" arg2="11.2" />
+		</condition>
+		<condition property="playerglobal.swfversion" value="16">
+			<equals arg1="${playerglobal.version}" arg2="11.3" />
+		</condition>
+		<condition property="playerglobal.swfversion" value="17">
+			<equals arg1="${playerglobal.version}" arg2="11.4" />
+		</condition>
+	</target>	
 
     <!--
         automation: tool was formerly qtp and tool_air was formerly qtp_air



Mime
View raw message