incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject svn commit: r1350787 - in /incubator/flex/trunk: README env-template.properties frameworks/projects/flash-integration/build.xml
Date Fri, 15 Jun 2012 20:33:47 GMT
Author: aharui
Date: Fri Jun 15 20:33:47 2012
New Revision: 1350787

URL: http://svn.apache.org/viewvc?rev=1350787&view=rev
Log:
Add ability to generate FlexComponentKit.MXP.  It will only do so if you have installed the
Adobe Extension Manager and set an environment variable ADOBE_EXTENSION_MANAGER to point to
it.  Most folks will not need it in daily building of stuff.  Release managers will need it
if we need to update the FlexComponentKit because some underlying dependency gets changed.

Modified:
    incubator/flex/trunk/README
    incubator/flex/trunk/env-template.properties
    incubator/flex/trunk/frameworks/projects/flash-integration/build.xml

Modified: incubator/flex/trunk/README
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/README?rev=1350787&r1=1350786&r2=1350787&view=diff
==============================================================================
--- incubator/flex/trunk/README (original)
+++ incubator/flex/trunk/README Fri Jun 15 20:33:47 2012
@@ -96,6 +96,8 @@ Install Prerequisites
     
     Adobe Flash Player (*5)                     PLAYERGLOBAL_HOME
 
+    Adobe Extension Manager CS5 (*6)            ADOBE_EXTENSION_MANAGER
+
     ==================================================================================
         
     *1) The bin directories for ANT_HOME and JAVA_HOME should be added to your PATH.
@@ -146,6 +148,20 @@ Install Prerequisites
 		the version subdirectory). The target-version option controls which 
 		PLAYERGLOBAL_HOME subdirectory is used.
 
+    *6) The Adobe Extension Manager is only required for those creating release or testing
+            changes to the flash-integration swc.  Not that if you change APIs on classes
+            that flash-integration depends on, you may need to update flash-integration.
+
+        The Adobe Extension Manager for Windows can be downloaded from:
+            http://download.macromedia.com/pub/dw_exchange/extension_manager/win/AdobeExtensionManager5All.zip
+        
+         The Adobe Extension Manager for Mac can be downloaded from:
+            http://download.macromedia.com/pub/dw_exchange/extension_manager/mac/AdobeExtensionManager5All.dmg
+
+        On Windows, set ADOBE_EXTENSION_MANAGER to the absolute path of "Adobe Extension
Manager CS5.exe"
+        
+        On the Mac, set ADOBE_EXTENSION_MANAGER to the absolute path of "Adobe Extension
Manager CS5.app"
+
 FlashPlayer Configuration
 -------------------------
 

Modified: incubator/flex/trunk/env-template.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/env-template.properties?rev=1350787&r1=1350786&r2=1350787&view=diff
==============================================================================
--- incubator/flex/trunk/env-template.properties (original)
+++ incubator/flex/trunk/env-template.properties Fri Jun 15 20:33:47 2012
@@ -25,6 +25,8 @@
 #   AIR_HOME
 #   FLASHPLAYER_DEBUGGER
 #   PLAYERGLOBAL_HOME
+#   PIXELBENDER_HOME
+#   ADOBE_EXTENSION_MANAGER
 #
 # you need to set an environment variable with that name or set the property here
 # prefixed with "env.".  If a property is set in this file, and the corresponding 
@@ -85,3 +87,21 @@
 #
 #env.PIXELBENDER_HOME=
 
+#
+# Set this to the file that contains the Adobe Extension Manager CS5
+# for your platform.
+#
+# On Windows (32-bit), if installed to the default location, the setting would be
+#   env.ADOBE_EXTENSION_MANAGER=C:\\Program Files\\Adobe\\Adobe Extension Manager CS5\\Adobe
Extension Manager CS5.exe
+#
+# or on a 64-bit version of Windows
+#   env.ADOBE_EXTENSION_MANAGER=C:\\Program Files (x86)\\Adobe\\dobe Extension Manager CS5\\Adobe
Extension Manager CS5.exe
+#
+# Note: the folder "Program Files" (or "Program Files (x86)") might have a different name
+# dependending on the language of your Windows installation.
+#
+# 0n Mac, if installed to the default location, the setting would be
+#   env.ADOBE_EXTENSION_MANAGER=/Applications/Adobe Extension Manager CS5/Adobe Extension
Manager CS5.app/Contents/MacOS/Adobe Extension Manager CS5
+#
+#env.ADOBE_EXTENSION_MANAGER=
+

Modified: incubator/flex/trunk/frameworks/projects/flash-integration/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/projects/flash-integration/build.xml?rev=1350787&r1=1350786&r2=1350787&view=diff
==============================================================================
--- incubator/flex/trunk/frameworks/projects/flash-integration/build.xml (original)
+++ incubator/flex/trunk/frameworks/projects/flash-integration/build.xml Fri Jun 15 20:33:47
2012
@@ -28,6 +28,8 @@
 	<property file="${FLEX_HOME}/build.properties"/>
 
     <property name="locale" value="en_US"/>
+    
+    <property name="ADOBE_EXTENSION_MANAGER.set" value="false" />
 	
 	<macrodef name="bundle">
 		<attribute name="locale"/>
@@ -105,6 +107,11 @@
 			</fileset>
             <fileset dir="${basedir}/libs" />
 		</delete>
+		<delete failonerror="false">
+			<fileset dir="${FLEX_HOME}/frameworks/flash-integration">
+				<include name="*/FlexComponentKit.mxp"/>
+			</fileset>
+		</delete>
 	</target>
 	
 	<target name="bundles-clean">
@@ -163,8 +170,34 @@
 				<include name="flash-integration.swc"/>
 			</fileset>
 		</copy>
+        
+        <antcall target="FlashMXP" />
 	</target>
 
+    <target name="FlashMXP" description="builds flash-integration.MXP">
+        <echo message="ADOBE_EXTENSION_MANAGER is ${env.ADOBE_EXTENSION_MANAGER}"/>
+
+        <available file="${env.ADOBE_EXTENSION_MANAGER}" 
+            type="file" 
+            property="ADOBE_EXTENSION_MANAGER.set"/>
+
+        <antcall target="ReportNoExtensionManager" />
+        <antcall target="PackageMXP" />
+    </target>
+    
+    <target name="ReportNoExtensionManager" unless="ADOBE_EXTENSION_MANAGER.set" >
+        <echo message="Adobe ExtensionManager not found. MXP file will not be created"
/>
+    </target>
+    
+    <target name="PackageMXP" if="ADOBE_EXTENSION_MANAGER.set" >
+        <echo message="Creating MXP file" />
+        <exec executable="${env.ADOBE_EXTENSION_MANAGER}" dir="${basedir}" failonerror="true">
+            <arg value="-suppress" />
+            <arg value="-package" />
+            <arg value="mxi=${basedir}/FlexComponentKit.mxi" />
+            <arg value="mxp=${FLEX_HOME}/frameworks/flash-integration/FlexComponentKit.mxp"
/>
+        </exec>
+    </target>
 
 	<target name="doc" depends="clean-temp-docs" description="updates flash-integration.swc
with asdoc xml">
 		<!-- Load the <asdoc> task. We can't do this at the <project> level -->



Mime
View raw message